You are here

function xmlsitemap_taxonomy_update_7200 in XML sitemap 7.2

Change bundles on taxonomy terms from vid to $vocabulary->machine_name.

File

xmlsitemap_taxonomy/xmlsitemap_taxonomy.install, line 58
Install and uninstall schema and functions for the xmlsitemap_taxonomy.

Code

function xmlsitemap_taxonomy_update_7200() {
  drupal_load('module', 'taxonomy');
  drupal_load('module', 'xmlsitemap');
  $vocabularies = taxonomy_get_vocabularies();
  foreach ($vocabularies as $vid => $vocabulary) {
    xmlsitemap_link_bundle_rename('taxonomy_term', $vid, $vocabulary->machine_name);
  }
}