function _update_get_fetch_url_base

Returns the base of the URL to fetch available update data for a project.

Parameters

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

Return value

The base of the URL used for fetching available update data. This does not include the path elements to specify a particular project, version, site_key, etc.

See also

_update_build_fetch_url()

2 calls to _update_get_fetch_url_base()
_update_build_fetch_url in drupal/core/modules/update/update.fetch.inc
Generates the URL to fetch information about project updates.
_update_process_fetch_task in drupal/core/modules/update/update.fetch.inc
Processes a task to fetch available update data for a single project.

File

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

Code

function _update_get_fetch_url_base($project) {
  if (isset($project['info']['project status url'])) {
    $url = $project['info']['project status url'];
  }
  else {
    $url = config('update.settings')
      ->get('fetch.url');
    if (empty($url)) {
      $url = UPDATE_DEFAULT_URL;
    }
  }
  return $url;
}