diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-01 06:35:37 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-01 06:35:37 +0000 |
commit | 910143c0032275f1abff51901fb36eabc0a38a5c (patch) | |
tree | dec0a3cb23a2423d979fed11a6bcecb0dc53c699 | |
parent | 9cf7158058033396d20083f3946eea0d7adb9651 (diff) | |
download | brdo-910143c0032275f1abff51901fb36eabc0a38a5c.tar.gz brdo-910143c0032275f1abff51901fb36eabc0a38a5c.tar.bz2 |
#77733 by Ralf Stamm. The primary menu needs an mid of 2.
-rw-r--r-- | modules/system/system.install | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 9d20ae5d9..78f486b39 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -896,7 +896,7 @@ function system_install() { db_query("INSERT INTO {variable} (name, value) VALUES ('node_options_forum', '%s')", 'a:1:{i:0;s:6:"status";}'); - db_query("INSERT INTO {menu} (pid, path, title, description, weight, type) VALUES (0, '', 'Primary links', '', 0, 115)"); + db_query("INSERT INTO {menu} (mid, pid, path, title, description, weight, type) VALUES (2, 0, '', 'Primary links', '', 0, 115)"); db_query("INSERT INTO {variable} VALUES ('menu_primary_menu', 'i:2;')"); db_query("INSERT INTO {variable} VALUES ('menu_secondary_menu', 'i:2;')"); } @@ -3245,6 +3245,13 @@ function system_update_1010() { return $ret; } +function system_update_1011() { + $ret = array(); + $ret[] = update_sql('UPDATE {menu} SET mid = 2 WHERE mid = 0'); + cache_clear_all(); + return $ret; +} + /** * @} End of "defgroup updates-4.7-to-x.x" * The next series of updates should start at 2000. |