function _upgrade_status_build_fetch_url in Upgrade Status 7
Same name and namespace in other branches
- 5 upgrade_status.admin.inc \_upgrade_status_build_fetch_url()
- 6 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(). // US: Replace $site_key with $version.
$version: The target version of Drupal core you wish to query.
Return value
The URL for fetching information about updates to the specified project.
See also
1 call to _upgrade_status_build_fetch_url()
- _upgrade_status_process_fetch_task in ./
upgrade_status.fetch.inc - Processes a task to fetch available update data for a single project.
File
- ./
upgrade_status.fetch.inc, line 281
Code
function _upgrade_status_build_fetch_url($project, $version) {
$name = $project['name'];
$url = _update_get_fetch_url_base($project);
$url .= '/' . $name . '/' . $version;
// US: Remove all handling around $site_key; we don't want to pollute project
// usage statistics, so we don't use any of it.
return $url;
}