summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-01 06:35:37 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-01 06:35:37 +0000
commit910143c0032275f1abff51901fb36eabc0a38a5c (patch)
treedec0a3cb23a2423d979fed11a6bcecb0dc53c699
parent9cf7158058033396d20083f3946eea0d7adb9651 (diff)
downloadbrdo-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.install9
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.