Skip to content
Snippets Groups Projects
Commit accb3067 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Emit the menu after the actual content; this makes it possible to rebuild
  the menu when some action changed the system table.
parent c2866848
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -16,7 +16,7 @@ function admin_link($type) { ...@@ -16,7 +16,7 @@ function admin_link($type) {
} }
function sitemap_callback() { function sitemap_callback() {
return menu_map('admin'); return menu_map("admin");
} }
function admin_admin() { function admin_admin() {
...@@ -46,17 +46,6 @@ function admin_page() { ...@@ -46,17 +46,6 @@ function admin_page() {
module_invoke_all("link", "admin"); 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: ** Body:
*/ */
...@@ -71,12 +60,6 @@ function admin_page() { ...@@ -71,12 +60,6 @@ function admin_page() {
print "<h2>". t("Administration") ."</h2>"; print "<h2>". t("Administration") ."</h2>";
} }
/*
if ($menu = menu_menu()) {
print "$menu<br />";
}
*/
if ($help = menu_help()) { if ($help = menu_help()) {
print "<small>$help</small>"; print "<small>$help</small>";
} }
...@@ -94,6 +77,14 @@ function admin_page() { ...@@ -94,6 +77,14 @@ function admin_page() {
print "</div>"; 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> </body>
</html> </html>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment