function theme_update_last_check

×

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.module theme_update_last_check($variables)
cle7 update.module theme_update_last_check($variables)
elmsmedia7 update.module theme_update_last_check($variables)
icor7 update.module theme_update_last_check($variables)
meedjum_blog7 update.module theme_update_last_check($variables)
mooc7 update.module theme_update_last_check($variables)

Returns HTML for the last time we checked for update data.

In addition to properly formatting the given timestamp, this function also provides a "Check manually" link that refreshes the available update and redirects back to the same page.

Parameters

$variables: An associative array containing:

  • last: The timestamp when the site last checked for available updates.

See also

theme_update_report()

theme_update_available_updates_form()

Related topics

2 theme calls to theme_update_last_check()
theme_update_manager_update_form in modules/update/update.manager.inc
Returns HTML for the first page in the process of updating projects.
theme_update_report in modules/update/update.report.inc
Returns HTML for the project status report.
10 string references to the theme hook from theme_update_last_check()

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.

drupal-6.filled.database.php in modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
drupal-6.og.database.php in sites/all/modules/ulmus/og/tests/drupal-6.og.database.php
Filled installation of Drupal 6.17, for test purposes.
og-7.x-1.x.database.php in sites/all/modules/ulmus/og/tests/og-7.x-1.x.database.php
Filled installation of Drupal 7.0, for test purposes.
theme_update_manager_update_form in modules/update/update.manager.inc
Returns HTML for the first page in the process of updating projects.
theme_update_report in modules/update/update.report.inc
Returns HTML for the project status report.

... See full list

File

modules/update/update.module, line 657
Handles updates of Drupal core and contributed projects.

Code

function theme_update_last_check($variables) {
  $last = $variables['last'];
  $output = '<div class="update checked">';
  $output .= $last ? t('Last checked: @time ago', array('@time' => format_interval(REQUEST_TIME - $last))) : t('Last checked: never');
  $output .= ' <span class="check-manually">(' . l(t('Check manually'), 'admin/reports/updates/check', array('query' => drupal_get_destination())) . ')</span>';
  $output .= "</div>\n";
  return $output;
}