function update_status_info in Update Status 5
Fetch project info via XML-RPC from a central server.
1 call to update_status_info()
- update_status_refresh in ./
update_status.module - Fetch data from a central server and save as a variable.
File
- ./
update_status.module, line 199
Code
function update_status_info($projects = 'all') {
$server = variable_get('update_status_server', 'http://updates.drupal.org/xmlrpc.php');
$result = xmlrpc($server, 'project.release.data', $projects, '5.x');
if ($result === FALSE) {
watchdog('update_status', t('Update Status: Error %code: %message', array(
'%code' => xmlrpc_errno(),
'%message' => xmlrpc_error_msg(),
)), WATCHDOG_ERROR);
return FALSE;
}
return unserialize(gzinflate(substr(substr(base64_decode($result), 10), 0, -8)));
}