[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/includes/ -> theme.maintenance.inc (summary)

(no description)

File Size: 291 lines (11 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 7 files
 includes/unicode.inc
 includes/common.inc
 includes/theme.inc
 includes/path.inc
 includes/database.inc
 includes/module.inc
 includes/file.inc

Defines 6 functions

  _drupal_maintenance_theme()
  _theme_load_offline_registry()
  theme_task_list()
  theme_install_page()
  theme_update_page()
  template_preprocess_maintenance_page()

Functions
Functions that are not part of a class:

_drupal_maintenance_theme()   X-Ref
Sets up the theming system for site installs, updates and when the site is
in off-line mode. It also applies when the database is unavailable.

Minnelli is always used for the initial install and update operations. In
other cases, "settings.php" must have a "maintenance_theme" key set for the
$conf variable in order to change the maintenance theme.

_theme_load_offline_registry($theme, $base_theme = NULL, $theme_engine = NULL)   X-Ref
This builds the registry when the site needs to bypass any database calls.


theme_task_list($items, $active = NULL)   X-Ref
Return a themed list of maintenance tasks to perform.


theme_install_page($content)   X-Ref
Generate a themed installation page.

Note: this function is not themeable.

param: $content

theme_update_page($content, $show_messages = TRUE)   X-Ref
Generate a themed update page.

Note: this function is not themeable.

param: $content
param: $show_messages

template_preprocess_maintenance_page(&$variables)   X-Ref
The variables generated here is a mirror of template_preprocess_page().
This preprocessor will run it's course when theme_maintenance_page() is
invoked. It is also used in theme_install_page() and theme_update_page() to
keep all the variables consistent.

An alternate template file of "maintenance-page-offline.tpl.php" can be
used when the database is offline to hide errors and completely replace the
content.

The $variables array contains the following arguments:
- $content
- $show_blocks




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7