function menu_breadcrumb_update_6100 in Menu Breadcrumb 6
Same name and namespace in other branches
- 7 menu_breadcrumb.install \menu_breadcrumb_update_6100()
If people are upgrading from a patched version based on drupal.org/node/303247 we'll try to catch it here. Will just notify and clear the variables for now.
File
- ./
menu_breadcrumb.install, line 25 - Install file for the menu_breadcrumb module.
Code
function menu_breadcrumb_update_6100() {
// Remove deprecated filter variable, if it exists.
if (!is_null(variable_get('menu_breadcrumb_menus_filter', NULL))) {
variable_del('menu_breadcrumb_menus_filter');
}
// Require re-configuration of the menu list, if an incompatible
// menu_breadcrumb_default_menu variable exists.
$menus = variable_get('menu_breadcrumb_menus', array());
$incompatible = empty($menus['menu_breadcrumb_default_menu']);
if ($incompatible) {
drupal_set_message(t("Menu Breadcrumb's menu selection settings have changed recently. Please review the !settings and check that the correct menus are selected.", array(
'!settings' => l('Menu Breadcrumb settings', 'admin/settings/menu_breadcrumb'),
)), 'warning');
variable_del('menu_breadcrumb_menus');
}
return array();
}