function xmlsitemap_menu_update_6200 in XML sitemap 7.2
Same name and namespace in other branches
- 6.2 xmlsitemap_menu/xmlsitemap_menu.install \xmlsitemap_menu_update_6200()
Cleanup variables.
File
- xmlsitemap_menu/
xmlsitemap_menu.install, line 23 - Install and uninstall schema and functions for the xmlsitemap_menu module.
Code
function xmlsitemap_menu_update_6200() {
drupal_load('module', 'menu');
drupal_load('module', 'xmlsitemap');
$menus = array_keys(menu_get_menus());
foreach ($menus as $menu) {
$settings = array(
'status' => variable_get('xmlsitemap_menu_status_' . $menu, XMLSITEMAP_STATUS_DEFAULT),
'priority' => variable_get('xmlsitemap_menu_priority_' . $menu, XMLSITEMAP_PRIORITY_DEFAULT),
);
variable_set('xmlsitemap_settings_menu_' . $menu, $settings);
variable_del('xmlsitemap_menu_status_' . $menu);
variable_del('xmlsitemap_menu_priority_' . $menu);
variable_del('xmlsitemap_menu_calculate_priority_' . $menu);
}
variable_del('xmlsitemap_menu_menus');
variable_del('xmlsitemap_menu_calculate_priority');
}