drupal_set_message(t('XML sitemap settings for the @bundle-label %bundle have been saved.',array('@bundle-label'=>drupal_strtolower($entity_info['bundle label']),'%bundle'=>$entity_info['bundles'][$bundle]['label'])));
}
// Unset the form values since we have already saved the bundle settings and
// we don't want these values to get saved as variables in-case this form
// also uses system_settings_form().
unset($form_state['values']['xmlsitemap']);
}
/**
* Add a link's XML sitemap options to the link's form.
drupal_set_message(t('XML sitemap settings for the @bundle-label %bundle have been saved.',array('@bundle-label'=>drupal_strtolower($entity_info['bundle label']),'%bundle'=>$entity_info['bundles'][$bundle]['label'])));
}
// Unset the form values since we have already saved the bundle settings and
// we don't want these values to get saved as variables in-case this form
$tids=db_query_range("SELECT t.tid FROM {taxonomy_term_data} t LEFT JOIN {xmlsitemap} x ON x.type = 'taxonomy_term' AND t.tid = x.id WHERE x.id IS NULL AND t.vid IN (:vids) ORDER BY t.tid DESC",0,$limit,array(':vids'=>$vids))->fetchCol();
$tids=db_query_range("SELECT t.tid FROM {taxonomy_term_data} t INNER JOIN {taxonomy_vocabulary} tv USING (vid) LEFT JOIN {xmlsitemap} x ON x.type = 'taxonomy_term' AND t.tid = x.id WHERE x.id IS NULL AND tv.machine_name IN (:bundles) ORDER BY t.tid DESC",0,$limit,array(':bundles'=>$bundles))->fetchCol();
@@ -242,3 +241,13 @@ function xmlsitemap_taxonomy_get_node_count(stdClass $term) {
// @todo Use db_rewrite_sql() w/ switch user.
returndb_query_range("SELECT COUNT(ti.nid) FROM {taxonomy_index} ti LEFT JOIN {node n} USING (nid) WHERE ti.tid = :tid AND n.status = 1",0,1,array(':tid'=>$term->tid))->fetchField();