function xmlsitemap_taxonomy_uninstall in XML sitemap 6.2
Same name and namespace in other branches
- 6 xmlsitemap_taxonomy/xmlsitemap_taxonomy.install \xmlsitemap_taxonomy_uninstall()
- 7.2 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 module.
Code
function xmlsitemap_taxonomy_uninstall() {
drupal_load('module', 'taxonomy');
drupal_load('module', 'xmlsitemap');
$vids = array_keys(taxonomy_get_vocabularies());
foreach ($vids as $vid) {
xmlsitemap_link_bundle_delete('taxonomy_term', $vid);
}
}