diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-15 14:07:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-15 14:07:30 +0000 |
commit | f42bca3bd4a7b97e103ddba3fdb4e403f7215b2a (patch) | |
tree | 771d33dbec4ead4d7a3a20022dbbdd669bd32691 /index.php | |
parent | dbac31e066a95983c6a20d9cf9c69f048bb12ead (diff) | |
download | brdo-f42bca3bd4a7b97e103ddba3fdb4e403f7215b2a.tar.gz brdo-f42bca3bd4a7b97e103ddba3fdb4e403f7215b2a.tar.bz2 |
- Patch #599804 by effulgentsia, catch: unify page, AJAX 'path', and AJAX 'callback' callbacks. Oh my, this is the beginning of something big.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -19,25 +19,4 @@ define('DRUPAL_ROOT', getcwd()); 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 or array. -if (is_int($return)) { - switch ($return) { - case MENU_NOT_FOUND: - drupal_not_found(); - break; - case MENU_ACCESS_DENIED: - drupal_access_denied(); - break; - case MENU_SITE_OFFLINE: - drupal_site_offline(); - break; - } -} -elseif (isset($return)) { - // Print anything besides a menu constant, assuming it's not NULL or undefined. - print drupal_render_page($return); -} - -drupal_page_footer(); +menu_execute_active_handler(); |