function theme_upgrade_status_last_check in Upgrade Status 7
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
1 theme call to theme_upgrade_status_last_check()
- theme_upgrade_status_report in ./
upgrade_status.report.inc - Returns HTML for the project status report.
File
- ./
upgrade_status.module, line 230 - Checks to see if your installed modules are available for the next major release of Drupal.
Code
function theme_upgrade_status_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/upgrade/check', array(
'query' => drupal_get_destination(),
)) . ')</span>';
$output .= "</div>\n";
return $output;
}