You are here

function _update_fetch_data in Drupal 7

Attempts to drain the queue of tasks for release history data to fetch.

1 call to _update_fetch_data()
update_fetch_data in modules/update/update.module
Attempts to fetch update data after loading the necessary include file.

File

modules/update/update.fetch.inc, line 112
Code required only when fetching information about available updates.

Code

function _update_fetch_data() {
  $queue = DrupalQueue::get('update_fetch_tasks');
  $end = time() + variable_get('update_max_fetch_time', UPDATE_MAX_FETCH_TIME);
  while (time() < $end && ($item = $queue
    ->claimItem())) {
    _update_process_fetch_task($item->data);
    $queue
      ->deleteItem($item);
  }
}