drupal_maintenance_theme

includes/bootstrap.inc, line 1084

Versions
4.7 – 7
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 off-line mode. This also applies when the database fails.

See also

_drupal_maintenance_theme()

▾ 3 functions call drupal_maintenance_theme()

drupal_site_offline in includes/common.inc
Generates a site off-line message.
install_main in ./install.php
The Drupal installation happens in a series of steps. We begin by verifying that the current environment meets our minimum requirements. We then go on to verify that settings.php is properly configured. From there we connect to the configured database...
_db_error_page in includes/database.inc
Helper function to show fatal database errors.

Code

<?php
function drupal_maintenance_theme() {
  require_once './includes/theme.maintenance.inc';
  _drupal_maintenance_theme();
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.