_update_get_fetch_url_base

function _update_get_fetch_url_base

_update_get_fetch_url_base($project)

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()

File

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

Code

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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!update!update.fetch.inc/function/_update_get_fetch_url_base/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部