_update_get_fetch_url_base

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/update/update.fetch.inc, строка 137

Версии
6
_update_get_fetch_url_base($project)

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

Смотрите также

_update_build_fetch_url()

Параметры

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

Возвращаемое значение

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 функции вызывают _update_get_fetch_url_base()

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

Код

<?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);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему