Same name and namespace in other branches
- 4.7.x includes/bootstrap.inc \drupal_maintenance_theme()
- 5.x includes/bootstrap.inc \drupal_maintenance_theme()
- 6.x includes/bootstrap.inc \drupal_maintenance_theme()
- 7.x includes/bootstrap.inc \drupal_maintenance_theme()
- 8.9.x core/includes/bootstrap.inc \drupal_maintenance_theme()
- 9 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
4 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.
- MaintenanceModeSubscriber::onMaintenanceModeRequest in core/
lib/ Drupal/ Core/ EventSubscriber/ MaintenanceModeSubscriber.php - Returns response when site is in maintenance mode and user is not exempt.
- MaintenanceThemeTest::testMaintenanceTheme in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ MaintenanceThemeTest.php - Tests that the maintenance theme initializes the theme and its base themes.
File
- core/
includes/ bootstrap.inc, line 322 - Functions that need to be loaded on every Drupal request.
Code
function drupal_maintenance_theme() {
require_once __DIR__ . '/theme.maintenance.inc';
_drupal_maintenance_theme();
}