You are here

function xmlsitemap_taxonomy_uninstall in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap_taxonomy/xmlsitemap_taxonomy.install \xmlsitemap_taxonomy_uninstall()
  2. 6 xmlsitemap_taxonomy/xmlsitemap_taxonomy.install \xmlsitemap_taxonomy_uninstall()

Implements hook_uninstall().

File

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

Code

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