You are here

function upgrade_status_status in Upgrade Status 6

Same name and namespace in other branches
  1. 5 upgrade_status.module \upgrade_status_status()
  2. 7 upgrade_status.report.inc \upgrade_status_status()

Menu callback. Generate a page about the upgrade status of projects.

1 string reference to 'upgrade_status_status'
upgrade_status_menu in ./upgrade_status.module
Implementation of hook_menu().

File

./upgrade_status.report.inc, line 13

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', $data);
  }
  else {

    // US: Inlined _update_no_data().
    $destination = drupal_get_destination();
    return theme('upgrade_status_report', t('No information is available about currently installed modules. You can <a href="@check_manually">check manually</a>. Please note that checking for available upgrades can take a long time, so please be patient.', array(
      '@check_manually' => url('admin/reports/updates/upgrade/check', array(
        'query' => array(
          'query' => $destination,
        ),
      )),
    )));
  }
}