_update_get_fetch_url_base

Versions
6 – 7
_update_get_fetch_url_base($project)

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

See also

_update_build_fetch_url()

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.

▾ 2 functions call _update_get_fetch_url_base()

_update_build_fetch_url in drupal/modules/update/update.fetch.inc
Generates the URL to fetch information about project updates.
_update_refresh in drupal/modules/update/update.fetch.inc
Fetch project info via XML from a central server.

Code

drupal/modules/update/update.fetch.inc, line 137

<?php
function _update_get_fetch_url_base($project) {
  return isset($project['info']['project status url']) ? $project['info']['project status url'] : variable_get('update_fetch_url', UPDATE_DEFAULT_URL);
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.