function upgrade_status_status in Upgrade Status 7
Same name and namespace in other branches
- 5 upgrade_status.module \upgrade_status_status()
- 6 upgrade_status.report.inc \upgrade_status_status()
Page callback: Generates a page about the update status of projects.
See also
1 string reference to 'upgrade_status_status'
- upgrade_status_menu in ./
upgrade_status.module - Implementation of hook_menu().
File
- ./
upgrade_status.report.inc, line 15
Code
function upgrade_status_status() {
// US: Don't pass TRUE to check cache only.
if ($available = upgrade_status_get_available()) {
module_load_include('inc', 'upgrade_status', 'upgrade_status.compare');
$data = upgrade_status_calculate_project_data($available);
return theme('upgrade_status_report', array(
'data' => $data,
));
}
else {
// US: Inlined _update_no_data().
// @todo: File an upstream patch for that.
$destination = drupal_get_destination();
$data = t('No upgrade information available. <a href="@run_cron">Run cron</a> or <a href="@check_manually">check manually</a>.', array(
'@run_cron' => url('admin/reports/status/run-cron', array(
'query' => $destination,
)),
'@check_manually' => url('admin/reports/updates/upgrade/check', array(
'query' => $destination,
)),
));
return theme('upgrade_status_report', array(
'data' => $data,
));
}
}