You are here

function xmlsitemap_link_bundle_delete in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_link_bundle_delete()
  2. 7.2 xmlsitemap.module \xmlsitemap_link_bundle_delete()
  3. 2.x xmlsitemap.module \xmlsitemap_link_bundle_delete()
7 calls to xmlsitemap_link_bundle_delete()
xmlsitemap_menu_form_menu_delete_menu_confirm_submit in xmlsitemap_menu/xmlsitemap_menu.module
Form submit handler; delete sitemap links when a menu is deleted.
xmlsitemap_menu_uninstall in xmlsitemap_menu/xmlsitemap_menu.install
Implements hook_uninstall().
xmlsitemap_node_node_type in xmlsitemap_node/xmlsitemap_node.module
Implements hook_node_type().
xmlsitemap_node_uninstall in xmlsitemap_node/xmlsitemap_node.install
Implements hook_uninstall().
xmlsitemap_taxonomy_taxonomy in xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
Implements hook_taxonomy().

... See full list

File

./xmlsitemap.module, line 1036
Main file for the xmlsitemap module.

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);
}