You are here

function drupal_maintenance_theme in Drupal 5

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. 6 includes/bootstrap.inc \drupal_maintenance_theme()
  4. 7 includes/bootstrap.inc \drupal_maintenance_theme()
  5. 9 core/includes/bootstrap.inc \drupal_maintenance_theme()

Enables use of the theme system without requiring database access. Since there is not database access no theme will be enabled and the default themeable functions will be called. Some themeable functions can not be used without the full Drupal API loaded. For example, theme_page() is unavailable and theme_maintenance_page() must be used in its place.

13 calls to drupal_maintenance_theme()
db_connect in includes/database.mysqli.inc
Initialise a database connection.
db_connect in includes/database.mysql.inc
Initialize a database connection.
db_connect in includes/database.pgsql.inc
Initialize a database connection.
db_set_active in includes/database.inc
Activate a database for future queries.
install_already_done_error in ./install.php
Show an error page when Drupal has already been installed.

... See full list

File

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

Code

function drupal_maintenance_theme() {
  global $theme;
  require_once './includes/path.inc';
  require_once './includes/theme.inc';
  require_once './includes/common.inc';
  require_once './includes/unicode.inc';
  require_once './modules/filter/filter.module';
  unicode_check();
  drupal_add_css(drupal_get_path('module', 'system') . '/defaults.css', 'module');
  drupal_add_css(drupal_get_path('module', 'system') . '/system.css', 'module');
  $theme = '';
}