function l10n_update_fetch_server in Localization update 6
Same name and namespace in other branches
- 7 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 40 - Extends the update parser to work with releases
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;
}
}