drupal_maintenance_theme

  1. drupal
    1. 4.7
    2. 5
    3. 6 bootstrap.inc
    4. 7 bootstrap.inc
Versions
4.7 – 7 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.

▾ 4 functions call drupal_maintenance_theme()

db_connect in includes/database.mysql.inc
Initialize a database connection.
db_connect in includes/database.mysqli.inc
Initialise 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.

Code

includes/bootstrap.inc, line 846

<?php
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';
  unicode_check();
  $theme = '';
}
?>