summaryrefslogtreecommitdiff
path: root/modules/admin.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin.module')
-rw-r--r--modules/admin.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/admin.module b/modules/admin.module
index 9fb1a34bb..866aec55b 100644
--- a/modules/admin.module
+++ b/modules/admin.module
@@ -44,7 +44,7 @@ function admin_page() {
<?php
// NOTE: we include a dummy "print.css" to remove the "flash of unstyled content" (FUOC) problems in IE.
- module_invoke_all("link", "admin");
+ menu_build("admin");
/*
** Body:
@@ -79,8 +79,12 @@ function admin_page() {
/*
** Menu:
+ ** We rebuild the admin menu once more because one might have
+ ** enabled/disabled themes or modules, changed permissions, etc.
*/
+ menu_build("admin");
+
print "<div id=\"menu\">";
echo "<h1><a href=\"index.php\">". variable_get("site_name", "drupal") ."</a></h1>";
print menu_tree("admin") ;