function update_create_fetch_task

Creates a new fetch task after loading the necessary include file.

Parameters

$project: Associative array of information about a project. See update_get_projects() for the keys used.

See also

_update_create_fetch_task()

3 calls to update_create_fetch_task()
UpdateCoreTest::testFetchTasks in drupal/core/modules/update/lib/Drupal/update/Tests/UpdateCoreTest.php
Tests that exactly one fetch task per project is created and not more.
update_get_available in drupal/core/modules/update/update.module
Tries to get update information and refreshes it when necessary.
_update_refresh in drupal/core/modules/update/update.fetch.inc
Clears out all the available update data and initiates re-fetching.

File

drupal/core/modules/update/update.module, line 445
Handles updates of Drupal core and contributed projects.

Code

function update_create_fetch_task($project) {
  module_load_include('inc', 'update', 'update.fetch');
  return _update_create_fetch_task($project);
}