C:/drupal/includes/theme.maintenance.inc File Reference

Go to the source code of this file.


Functions

 _drupal_maintenance_theme ()
 _theme_load_offline_registry ($theme, $base_theme=NULL, $theme_engine=NULL)
 theme_task_list ($items, $active=NULL)
 theme_install_page ($content)
 theme_update_page ($content, $show_messages=TRUE)
 template_preprocess_maintenance_page (&$variables)


Detailed Description

Theming for maintenance pages.

Definition in file theme.maintenance.inc.


Function Documentation

_drupal_maintenance_theme (  ) 

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.

Definition at line 17 of file theme.maintenance.inc.

References $module_list, _init_theme(), drupal_add_css(), drupal_get_path(), drupal_load(), list_themes(), module_list(), unicode_check(), and variable_get().

Referenced by drupal_maintenance_theme().

Here is the call graph for this function:

_theme_load_offline_registry ( theme,
base_theme = NULL,
theme_engine = NULL 
)

This builds the registry when the site needs to bypass any database calls.

Definition at line 74 of file theme.maintenance.inc.

References _theme_build_registry(), and _theme_set_registry().

Here is the call graph for this function:

template_preprocess_maintenance_page ( &$  variables  ) 

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

See also:
maintenance-page.tpl.php

Definition at line 205 of file theme.maintenance.inc.

References $body_classes, $head_title, base_path(), check_url(), drupal_add_css(), drupal_get_content(), drupal_get_css(), drupal_get_html_head(), drupal_get_js(), drupal_get_title(), drupal_set_html_head(), theme(), theme_get_setting(), url(), and variable_get().

Referenced by theme_install_page(), and theme_update_page().

Here is the call graph for this function:

theme_install_page ( content  ) 

Generate a themed installation page.

Note: this function is not themeable.

Parameters:
$content The page content to show.

Definition at line 109 of file theme.maintenance.inc.

References $content, $messages, $title, drupal_set_header(), drupal_set_message(), request_uri(), st(), template_preprocess_maintenance_page(), theme(), and theme_render_template().

Here is the call graph for this function:

theme_update_page ( content,
show_messages = TRUE 
)

Generate a themed update page.

Note: this function is not themeable.

Parameters:
$content The page content to show.
$show_messages Whether to output status and error messages. FALSE can be useful to postpone the messages to a subsequent page.

Definition at line 162 of file theme.maintenance.inc.

References $content, $messages, $title, drupal_set_header(), drupal_set_message(), template_preprocess_maintenance_page(), theme(), and theme_render_template().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:10 2008 for SimpleTest by  1.5.5