function l10n_update_fetch_server in Localization update 7
Same name and namespace in other branches
- 6 l10n_update.parser.inc \l10n_update_fetch_server()
Fetch remote server metadata from a server URL
Parameters
unknown_type $server_url:
Return value
unknown_type
1 call to l10n_update_fetch_server()
- l10n_update_get_server in ./
l10n_update.parser.inc - Get server information
File
- ./
l10n_update.parser.inc, line 38
Code
function l10n_update_fetch_server($url) {
$xml = l10n_update_http_request($url);
if (isset($xml->data)) {
$data[] = $xml->data;
$parser = new l10n_update_xml_parser();
return $parser
->parse($xml->data);
}
else {
return FALSE;
}
}