diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-05-10 15:19:36 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-05-10 15:19:36 +0000 |
commit | da1b4bb94fb28680ad32e62491e0866e4527e6f6 (patch) | |
tree | 18a55cdd9e4f204d273f2d05d5628a3affe0c3e5 /modules/system/system.install | |
parent | c240ea574fcdf96cc8ffaa9775708dd380dce59b (diff) | |
download | brdo-da1b4bb94fb28680ad32e62491e0866e4527e6f6.tar.gz brdo-da1b4bb94fb28680ad32e62491e0866e4527e6f6.tar.bz2 |
#410636 by randallknutson, c960657, Berdir: Fixed D6->D7 update does not create required menus.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index ec6c7c021..dd636c843 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2305,6 +2305,27 @@ function system_update_7052() { } /** + * 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(); + + // Create the same menus as in menu_install(). + db_insert('menu_custom') + ->fields(array('menu_name' => 'user-menu', 'title' => 'User Menu', 'description' => "The <em>User</em> 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 <em>Management</em> menu contains links for administrative tasks.")) + ->execute(); +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |