function nice_menus_update_6002 in Nice Menus 7.3
Same name and namespace in other branches
- 7.2 nice_menus.install \nice_menus_update_6002()
Implements hook_update_N().
Update the menu selection variables to match the new format that allows selection of the exact menu item to start the display from.
File
- ./
nice_menus.install, line 73 - Update functions for Nice menus.
Code
function nice_menus_update_6002() {
for ($delta = 1; $delta <= variable_get('nice_menus_number', '2'); $delta++) {
$menu = variable_get('nice_menus_menu_' . $delta, 'navigation');
// If no menu item is selected.
if (strpos($menu, ':') === FALSE) {
variable_set('nice_menus_menu_' . $delta, $menu . ':0');
}
}
}