drupal_maintenance_theme

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 maintenance mode. This also applies when the database fails.

See also

_drupal_maintenance_theme()

▾ 4 functions call drupal_maintenance_theme()

drupal_deliver_html_page in includes/common.inc
Package and send the result of a page callback to the browser as a normal HTML page.
install_begin_request in ./install.php
Begin an installation request, modifying the installation state as needed.
_db_error_page in includes/database/database.inc
Prints a themed maintenance page with the 'Site offline' text, adding the provided error message in the case of 'display_errors' set to on. Ends the page request; no return.
_drupal_log_error in includes/common.inc
Log a PHP error or exception, display an error page in fatal cases.

Code

includes/bootstrap.inc, line 1710

<?php
function drupal_maintenance_theme() {
  require_once DRUPAL_ROOT . '/includes/theme.maintenance.inc';
  _drupal_maintenance_theme();
}
?>
Login or register to post comments
 
 

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.