function drupal_maintenance_theme

Same name in other branches
  1. 7.x includes/bootstrap.inc \drupal_maintenance_theme()
  2. 9 core/includes/bootstrap.inc \drupal_maintenance_theme()
  3. 8.9.x core/includes/bootstrap.inc \drupal_maintenance_theme()
  4. 10 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()

7 calls to drupal_maintenance_theme()
authorize.php in core/authorize.php
Administrative script for running authorized file operations.
drupal_flush_all_caches in core/includes/common.inc
Rebuilds the container, flushes all persistent caches, resets all variables, and rebuilds all data structures.
install_begin_request in core/includes/install.core.inc
Begins an installation request, modifying the installation state as needed.
install_display_output in core/includes/install.core.inc
Displays themed installer output and ends the page request.
install_run_tasks in core/includes/install.core.inc
Runs all tasks for the current installation request.

... See full list

File

core/includes/bootstrap.inc, line 269

Code

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

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