Package base :: Package includes :: Module theme_maintenance
[hide private]

Module theme_maintenance

source code

Theming for maintenance pages. 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.
See Also:
Drupy Homepage, Drupal Homepage
Notes:

Author: Brendon Crawford

Copyright: 2008 Brendon Crawford

Contact: message144 at users dot sourceforge dot net

Version: 0.1

Functions [hide private]
 
_drupal_maintenance_theme() source code
 
_load_offline_registry(this_theme, base_theme=None, theme_engine=None) source code
 
task_list(items_, active=None)
Return a themed list of maintenance tasks to perform.
source code
 
install_page(content)
Generate a themed installation page.
source code
 
update_page(content, show_messages=True)
Generate a themed update page.
source code
 
template_preprocess_maintenance_page(variables)
The variables generated here is a mirror of template_preprocess_page().
source code
Variables [hide private]
  __version__ = '$Revision: 1 $'
Function Details [hide private]

install_page(content)

source code 
Generate a themed installation page. Note: this function is not themeable.
Parameters:
  • content - The page content to show.

update_page(content, show_messages=True)

source code 
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.

template_preprocess_maintenance_page(variables)

source code 
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: