diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-13 15:23:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-13 15:23:03 +0000 |
commit | 3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d (patch) | |
tree | 4bd9c67db94feb06249cc2727dd3a5e935f58e12 /modules/update | |
parent | f8e14898d636ceae44a9980105da903f57d2deef (diff) | |
download | brdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.gz brdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.bz2 |
- Patch #716496 by JohnAlbin: documentation updates for theme functions.
Diffstat (limited to 'modules/update')
-rw-r--r-- | modules/update/update.manager.inc | 5 | ||||
-rw-r--r-- | modules/update/update.module | 5 | ||||
-rw-r--r-- | modules/update/update.report.inc | 20 |
3 files changed, 23 insertions, 7 deletions
diff --git a/modules/update/update.manager.inc b/modules/update/update.manager.inc index f72ce44c1..595c64222 100644 --- a/modules/update/update.manager.inc +++ b/modules/update/update.manager.inc @@ -256,10 +256,11 @@ function update_manager_update_form($form, $form_state = array(), $context) { } /** - * Theme the first page in the update manager wizard to select projects. + * Returns HTML for the first page in the update manager wizard to select projects. * * @param $variables - * form: The form + * An associative array containing: + * - form: A render element representing the form. * * @ingroup themeable */ diff --git a/modules/update/update.module b/modules/update/update.module index af81f6b01..faa79c567 100644 --- a/modules/update/update.module +++ b/modules/update/update.module @@ -606,14 +606,15 @@ function _update_project_status_sort($a, $b) { } /** - * Render the HTML to display the last time we checked for update data. + * Returns HTML for the last time we checked for update data. * * In addition to properly formating the given timestamp, this function also * provides a "Check manually" link that refreshes the available update and * redirects back to the same page. * * @param $variables - * 'last': The timestamp when the site last checked for available updates. + * An associative array containing: + * - 'last': The timestamp when the site last checked for available updates. * * @see theme_update_report() * @see theme_update_available_updates_form() diff --git a/modules/update/update.report.inc b/modules/update/update.report.inc index b33cea897..6a9d60d1b 100644 --- a/modules/update/update.report.inc +++ b/modules/update/update.report.inc @@ -21,7 +21,11 @@ function update_status() { } /** - * Theme project status report. + * Returns HTML for the project status report. + * + * @param $variables + * An associative array containing: + * - data: An array of data about each project's status. * * @ingroup themeable */ @@ -244,7 +248,7 @@ function theme_update_report($variables) { } /** - * Generate the HTML for the label to display for a project's update status. + * Returns HTML for a label to display for a project's update status. * * @param $variables * An associative array containing: @@ -273,7 +277,17 @@ function theme_update_status_label($variables) { } /** - * Theme the version display of a project. + * Returns HTML for the version display of a project. + * + * @param $variables + * An associative array containing: + * - version: An array of data about the latest released version, containing: + * - version: The version number. + * - release_link: The URL for the release notes. + * - date: The date of the release. + * - download_link: The URL for the downloadable file. + * - tag: The title of the project. + * - class: A string containing extra classes for the wrapping table. * * @ingroup themeable */ |