You are here

function drupal_maintenance_theme in Drupal 9

Same name and namespace in other branches
  1. 8 core/includes/bootstrap.inc \drupal_maintenance_theme()
  2. 4 includes/bootstrap.inc \drupal_maintenance_theme()
  3. 5 includes/bootstrap.inc \drupal_maintenance_theme()
  4. 6 includes/bootstrap.inc \drupal_maintenance_theme()
  5. 7 includes/bootstrap.inc \drupal_maintenance_theme()
  6. 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 503
Functions that need to be loaded on every Drupal request.

Code

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