You are here

function xmlsitemap_menu_menu_update in XML sitemap 7.2

Implements hook_menu_update().

File

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

Code

function xmlsitemap_menu_menu_update(array $menu) {
  if (isset($menu['xmlsitemap'])) {
    xmlsitemap_link_bundle_settings_save('menu_link', $menu['menu_name'], $menu['xmlsitemap']);
  }

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