Commit accb3067 authored by Dries's avatar Dries

- Emit the menu after the actual content; this makes it possible to rebuild
  the menu when some action changed the system table.
parent c2866848
......@@ -16,7 +16,7 @@ function admin_link($type) {
}
function sitemap_callback() {
return menu_map('admin');
return menu_map("admin");
}
function admin_admin() {
......@@ -46,17 +46,6 @@ function admin_page() {
module_invoke_all("link", "admin");
/*
** Menu:
*/
print "<div id=\"menu\">";
echo "<h1><a href=\"index.php\">". variable_get("site_name", "drupal") ."</a></h1>";
//print menu_tree('admin') ;
print menu_tree('admin') ;
print "</div>";
/*
** Body:
*/
......@@ -71,12 +60,6 @@ function admin_page() {
print "<h2>". t("Administration") ."</h2>";
}
/*
if ($menu = menu_menu()) {
print "$menu<br />";
}
*/
if ($help = menu_help()) {
print "<small>$help</small>";
}
......@@ -94,6 +77,14 @@ function admin_page() {
print "</div>";
/*
** Menu:
*/
print "<div id=\"menu\">";
echo "<h1><a href=\"index.php\">". variable_get("site_name", "drupal") ."</a></h1>";
print menu_tree("admin") ;
print "</div>";
?>
</body>
</html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment