summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2003-11-20 21:51:23 (GMT)
committerDries Buytaert2003-11-20 21:51:23 (GMT)
commit4bdac4333ba34adc61e19180b5f1bcde692615e2 (patch)
treeed30f0417f99d0257bef231f6652d1399d0e520a /index.php
parent9000f825cc63e6b52ad4f19f633d67aa16fef799 (diff)
- Patch by JonBob:
Phase 2 of the menu system integration project. This unifies the interface used by admin and non-admin pages, and deprecates the _page hook in favor of explicit callbacks from menu(). Breadcrumbs, titles, and help text go away as a result of this patch; they will return in the phase 3 patch, printed by the theme.
Diffstat (limited to 'index.php')
-rw-r--r--index.php24
1 files changed, 3 insertions, 21 deletions
diff --git a/index.php b/index.php
index 8871ee3..06c2339 100644
--- a/index.php
+++ b/index.php
@@ -10,29 +10,11 @@ fix_gpc_magic();
menu_build("system");
if (menu_active_handler_exists()) {
- $breadcrumb = menu_get_active_breadcrumb();
- array_pop($breadcrumb);
- $title = menu_get_active_title();
-
- print theme("header");
- print theme("breadcrumb", $breadcrumb);
- if ($help = menu_get_active_help()) {
- $contents = "<small>$help</small><hr />";
- }
- $contents .= menu_execute_active_handler();
- print theme("box", $title, $contents);
- print theme("footer");
+ menu_execute_active_handler();
}
else {
- $mod = arg(0);
-
- if (isset($mod) && module_hook($mod, "page")) {
- module_invoke($mod, "page");
- }
- else {
- print theme("header");
- print theme("footer");
- }
+ print theme("header");
+ print theme("footer");
}
drupal_page_footer();