diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-27 00:22:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-27 00:22:27 +0000 |
commit | 2e8ca690ff471b1d6604226e8153f401b1827204 (patch) | |
tree | 546f818191f809271154f26464961e3425dbc72c /index.php | |
parent | ba5609c11a88f8ab8f42520c3f39eafb69dd463e (diff) | |
download | brdo-2e8ca690ff471b1d6604226e8153f401b1827204.tar.gz brdo-2e8ca690ff471b1d6604226e8153f401b1827204.tar.bz2 |
- Patch #351235 by dmitrig01, webchick, frando, moshe weitzman, et al: hook_page_alter. Oh, behave.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); |