You are here

function xmlsitemap_menu_menu_insert in XML sitemap 7.2

Implements hook_menu_insert().

File

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

Code

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