summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2009-01-27 00:22:27 (GMT)
committerDries Buytaert2009-01-27 00:22:27 (GMT)
commit2e8ca690ff471b1d6604226e8153f401b1827204 (patch)
tree546f818191f809271154f26464961e3425dbc72c /index.php
parentba5609c11a88f8ab8f42520c3f39eafb69dd463e (diff)
- Patch #351235 by dmitrig01, webchick, frando, moshe weitzman, et al: hook_page_alter. Oh, behave.
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index dba9f11..d776d76 100644
--- a/index.php
+++ b/index.php
@@ -21,7 +21,7 @@ require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$return = menu_execute_active_handler();
-// Menu status constants are integers; page content is a string.
+// Menu status constants are integers; page content is a string or array.
if (is_int($return)) {
switch ($return) {
case MENU_NOT_FOUND:
@@ -36,8 +36,8 @@ if (is_int($return)) {
}
}
elseif (isset($return)) {
- // Print any value (including an empty string) except NULL or undefined:
- print theme('page', $return);
+ // Print anything besides a menu constant, assuming it's not NULL or undefined.
+ print drupal_render_page($return);
}
drupal_page_footer();