function drupal_maintenance_theme

Same name in other branches
  1. 9 core/includes/bootstrap.inc \drupal_maintenance_theme()
  2. 8.9.x core/includes/bootstrap.inc \drupal_maintenance_theme()
  3. 10 core/includes/bootstrap.inc \drupal_maintenance_theme()
  4. 11.x core/includes/bootstrap.inc \drupal_maintenance_theme()

Enables use of the theme system without requiring database access.

Loads and initializes the theme system for site installs, updates and when the site is in maintenance mode. This also applies when the database fails.

See also

_drupal_maintenance_theme()

5 calls to drupal_maintenance_theme()
authorize.php in ./authorize.php
Administrative script for running authorized file operations.
drupal_deliver_html_page in includes/common.inc
Packages and sends the result of a page callback to the browser as HTML.
install_begin_request in includes/install.core.inc
Begins an installation request, modifying the installation state as needed.
update.php in ./update.php
Administrative page for handling updates from one Drupal version to another.
_drupal_log_error in includes/errors.inc
Logs a PHP error or exception and displays an error page in fatal cases.

File

includes/bootstrap.inc, line 2964

Code

function drupal_maintenance_theme() {
    require_once DRUPAL_ROOT . '/includes/theme.maintenance.inc';
    _drupal_maintenance_theme();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.