Skip to content
Snippets Groups Projects
Select Git revision
  • bd5c16ecf4fd9a23de928af65236d18445ff71bc
  • 11.x default protected
  • 11.2.x protected
  • 10.6.x protected
  • 10.5.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

index.php

Blame
  • Dries Buytaert's avatar
    - Patch #44993 by markus, jaza, dopry et al: blank page when menu callbacks generate empty pages.
    Dries Buytaert authored
    9b47a147
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    index.php 741 B
    <?php
    // $Id$
    
    /**
     * @file
     * The PHP page that serves all page requests on a Drupal installation.
     *
     * The routines here dispatch control to the appropriate handler, which then
     * prints the appropriate page.
     */
    
    require_once './includes/bootstrap.inc';
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
    
    $return = menu_execute_active_handler();
    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;
      default:
        // Print any value (including an empty string) except NULL or undefined:
        if (isset($return)) {
          print theme('page', $return);
        }
        break;
    }
    
    drupal_page_footer();