You are here

function xmlsitemap_node_uninstall in XML sitemap 6.2

Same name and namespace in other branches
  1. 5.2 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_uninstall()
  2. 5 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_uninstall()
  3. 6 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_uninstall()
  4. 7.2 xmlsitemap_node/xmlsitemap_node.install \xmlsitemap_node_uninstall()

Implements hook_uninstall().

File

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

Code

function xmlsitemap_node_uninstall() {
  drupal_load('module', 'node');
  drupal_load('module', 'xmlsitemap');
  $node_types = array_keys(node_get_types('names'));
  foreach ($node_types as $node_type) {
    xmlsitemap_link_bundle_delete('node', $node_type);
  }
}