function 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()

6 calls to drupal_maintenance_theme()
authorize.php in drupal/core/authorize.php
Administrative script for running authorized file operations.
drupal_flush_all_caches in drupal/core/includes/common.inc
Flushes all persistent caches, resets all variables, and rebuilds all data structures.
install_begin_request in drupal/core/includes/install.core.inc
Begins an installation request, modifying the installation state as needed.
MaintenanceModeSubscriber::onKernelRequestMaintenance in drupal/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
Returns the site maintenance page if the site is offline.
update.php in drupal/core/update.php
Administrative page for handling updates from one Drupal version to another.

... See full list

File

drupal/core/includes/bootstrap.inc, line 2368
Functions that need to be loaded on every Drupal request.

Code

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