summaryrefslogtreecommitdiff
path: root/includes/theme.maintenance.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-13 15:23:03 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-13 15:23:03 +0000
commit3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d (patch)
tree4bd9c67db94feb06249cc2727dd3a5e935f58e12 /includes/theme.maintenance.inc
parentf8e14898d636ceae44a9980105da903f57d2deef (diff)
downloadbrdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.gz
brdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.bz2
- Patch #716496 by JohnAlbin: documentation updates for theme functions.
Diffstat (limited to 'includes/theme.maintenance.inc')
-rw-r--r--includes/theme.maintenance.inc23
1 files changed, 17 insertions, 6 deletions
diff --git a/includes/theme.maintenance.inc b/includes/theme.maintenance.inc
index c19dd05db..1a60911b1 100644
--- a/includes/theme.maintenance.inc
+++ b/includes/theme.maintenance.inc
@@ -87,7 +87,12 @@ function _theme_load_offline_registry($theme, $base_theme = NULL, $theme_engine
}
/**
- * Return a themed list of maintenance tasks to perform.
+ * Returns HTML for a list of maintenance tasks to perform.
+ *
+ * @param $variables
+ * An associative array containing:
+ * - items: An associative array of maintenance tasks.
+ * - active: The key for the currently active maintenance task.
*
* @ingroup themeable
*/
@@ -120,7 +125,7 @@ function theme_task_list($variables) {
}
/**
- * Generate a themed installation page.
+ * Returns HTML for the installation page.
*
* Note: this function is not themeable.
*
@@ -180,7 +185,7 @@ function theme_install_page($variables) {
}
/**
- * Generate a themed update page.
+ * Returns HTML for the update page.
*
* Note: this function is not themeable.
*
@@ -226,10 +231,13 @@ function theme_update_page($variables) {
}
/**
- * Generate a report of the results from an operation run via authorize.php.
+ * Returns HTML for a report of the results from an operation run via authorize.php.
*
- * @param array $variables
+ * @param $variables
+ * An associative array containing:
* - messages: An array of result messages.
+ *
+ * @ingroup themeable
*/
function theme_authorize_report($variables) {
$messages = $variables['messages'];
@@ -251,11 +259,14 @@ function theme_authorize_report($variables) {
}
/**
- * Render a single log message from the authorize.php batch operation.
+ * Returns HTML for a single log message from the authorize.php batch operation.
*
* @param $variables
+ * An associative array containing:
* - message: The log message.
* - success: A boolean indicating failure or success.
+ *
+ * @ingroup themeable
*/
function theme_authorize_message($variables) {
$output = '';