? upgrade-menus.410636.patch
Index: system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.461
diff -r1.461 system.install
2400a2401,2436
> * Upgrade standard blocks and menus.
> */
> function system_update_7053() {
> // Navigation block is now defined in system module.
> db_update('block')
> ->fields(array('module' => 'system'))
> ->condition('module', 'user')
> ->condition('delta', 'navigation')
> ->execute();
>
> // Make the menus the same as those created in menu_install()
> db_update('menu_custom')
> ->fields(array('menu_name' => 'main-menu', 'title' => 'Main Menu', 'description' => 'The Main menu is used on many sites to show the major sections of the site, often in a top navigation bar.'))
> ->condition('menu_name', 'primary-links')
> ->execute();
>
> db_update('menu_custom')
> ->fields(array('menu_name' => 'secondary-menu', 'title' => 'Secondary Menu', 'description' => 'The Secondary menu is used on many sites for legal notices and contact pages.'))
> ->condition('menu_name', 'secondary-links')
> ->execute();
>
> db_update('menu_custom')
> ->fields(array('description' => 'The Navigation menu contains links intended for site visitors. Links are added to the Navigation menu automatically by some modules.'))
> ->condition('menu_name', 'navigation')
> ->execute();
>
> db_insert('menu_custom')
> ->fields(array('menu_name' => 'user-menu', 'title' => 'User Menu', 'description' => "The User menu contains links related to the user's account, as well as the 'Log out' link."))
> ->execute();
>
> db_insert('menu_custom')
> ->fields(array('menu_name' => 'management', 'title' => 'Management', 'description' => "The Management menu contains links for administrative tasks."))
> ->execute();
> }
>
> /**