You are here

function xmlsitemap_menu_menu_delete in XML sitemap 7.2

Implements hook_menu_delete().

File

xmlsitemap_menu/xmlsitemap_menu.module, line 195
Main file for XML sitemap menu.

Code

function xmlsitemap_menu_menu_delete(array $menu) {
  xmlsitemap_link_bundle_delete('menu_link', $menu['menu_name']);

  // When menus change, the bundles we defined in
  // xmlsitemap_menu_entity_info_alter() change, so we need to clear the cache.
  entity_info_cache_clear();
}