You are here

function xmlsitemap_link_bundle_delete in XML sitemap 7.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_link_bundle_delete()
  2. 6.2 xmlsitemap.module \xmlsitemap_link_bundle_delete()
  3. 2.x xmlsitemap.module \xmlsitemap_link_bundle_delete()

Bundle Delete.

6 calls to xmlsitemap_link_bundle_delete()
xmlsitemap_field_attach_delete_bundle in ./xmlsitemap.module
Implements hook_field_attach_delete_bundle().
xmlsitemap_menu_menu_delete in xmlsitemap_menu/xmlsitemap_menu.module
Implements hook_menu_delete().
xmlsitemap_menu_uninstall in xmlsitemap_menu/xmlsitemap_menu.install
Implements hook_uninstall().
xmlsitemap_node_uninstall in xmlsitemap_node/xmlsitemap_node.install
Implements hook_uninstall().
xmlsitemap_taxonomy_uninstall in xmlsitemap_taxonomy/xmlsitemap_taxonomy.install
Implements hook_uninstall().

... See full list

File

./xmlsitemap.module, line 1212
xmlsitemap XML sitemap

Code

function xmlsitemap_link_bundle_delete($entity, $bundle, $delete_links = TRUE) {
  variable_del("xmlsitemap_settings_{$entity}_{$bundle}");
  if ($delete_links) {
    xmlsitemap_link_delete_multiple(array(
      'type' => $entity,
      'subtype' => $bundle,
    ));
  }
  cache_clear_all('xmlsitemap:link_info:', 'cache', TRUE);

  // xmlsitemap_get_link_info(NULL, TRUE);.
}