You are here

function upgrade_status_manual_status in Upgrade Status 7

Same name and namespace in other branches
  1. 5 upgrade_status.module \upgrade_status_manual_status()
  2. 6 upgrade_status.fetch.inc \upgrade_status_manual_status()

Page callback: Checks for updates and displays the update status report.

Manually checks the update status without the use of cron.

See also

upgrade_status_menu()

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

File

./upgrade_status.fetch.inc, line 17

Code

function upgrade_status_manual_status() {
  _upgrade_status_refresh();
  $batch = array(
    'operations' => array(
      array(
        'upgrade_status_fetch_data_batch',
        array(),
      ),
    ),
    'finished' => 'update_fetch_data_finished',
    'title' => t('Checking available upgrade data'),
    'progress_message' => t('Trying to check available upgrade data ...'),
    'error_message' => t('Error checking available upgrade data.'),
    'file' => drupal_get_path('module', 'upgrade_status') . '/upgrade_status.fetch.inc',
  );
  batch_set($batch);
  batch_process('admin/reports/updates/upgrade');
}