function theme_update_status_label

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 update.report.inc theme_update_status_label($variables)
cle7 update.report.inc theme_update_status_label($variables)
elmsmedia7 update.report.inc theme_update_status_label($variables)
icor7 update.report.inc theme_update_status_label($variables)
meedjum_blog7 update.report.inc theme_update_status_label($variables)
mooc7 update.report.inc theme_update_status_label($variables)

Returns HTML for a label to display for a project's update status.

Parameters

array $variables: An associative array containing:

  • status: The integer code for a project's current update status.

See also

update_calculate_project_data()

Related topics

1 theme call to theme_update_status_label()
theme_update_report in modules/update/update.report.inc
Returns HTML for the project status report.
2 string references to the theme hook from theme_update_status_label()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

theme_update_report in modules/update/update.report.inc
Returns HTML for the project status report.
update_theme in modules/update/update.module
Implements hook_theme().

File

modules/update/update.report.inc, line 264
Code required only when rendering the available updates report.

Code

function theme_update_status_label($variables) {
  switch ($variables['status']) {
    case UPDATE_NOT_SECURE:
      return '<span class="security-error">' . t('Security update required!') . '</span>';

    case UPDATE_REVOKED:
      return '<span class="revoked">' . t('Revoked!') . '</span>';

    case UPDATE_NOT_SUPPORTED:
      return '<span class="not-supported">' . t('Not supported!') . '</span>';

    case UPDATE_NOT_CURRENT:
      return '<span class="not-current">' . t('Update available') . '</span>';

    case UPDATE_CURRENT:
      return '<span class="current">' . t('Up to date') . '</span>';

  }
}