You are here

function _upgrade_status_build_fetch_url in Upgrade Status 6

Same name and namespace in other branches
  1. 5 upgrade_status.admin.inc \_upgrade_status_build_fetch_url()
  2. 7 upgrade_status.fetch.inc \_upgrade_status_build_fetch_url()

Generates the URL to fetch information about project updates.

This figures out the right URL to use, based on the project's .info file and the global defaults. Appends optional query arguments when the site is configured to report usage stats.

Parameters

$project: The array of project information from update_get_projects().

$version: The target version of Drupal core you wish to query.

See also

upgrade_status_refresh()

update_get_projects()

1 call to _upgrade_status_build_fetch_url()
_upgrade_status_refresh in ./upgrade_status.fetch.inc
Fetch project info via XML from a central server.

File

./upgrade_status.fetch.inc, line 121

Code

function _upgrade_status_build_fetch_url($project, $version) {
  $name = $project['name'];
  $url = _update_get_fetch_url_base($project);
  $url .= '/' . $name . '/' . $version;
  return $url;
}