function prod_check_get_data in Production check & Production monitor 6
Same name and namespace in other branches
- 7 prod_check.module \prod_check_get_data()
XMLRPC callback function that returns all data of requested checks.
Parameters
ping_key Api key for this site:
checks Array of all checks to perform:
Return value
Array of all data to be displayed by the requesting site in a 'status_form' theme.
1 string reference to 'prod_check_get_data'
- prod_check_xmlrpc in ./
prod_check.module - Implementation of hook_xmlrpc http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...
File
- ./
prod_check.module, line 281
Code
function prod_check_get_data($ping_key, $checks) {
$data = FALSE;
if (_prod_check_valid_key($ping_key)) {
$data = array();
foreach ($checks as $set => $calls) {
$data[$set] = array();
foreach ($calls as $key => $function) {
$check = call_user_func($function, 'xmlrpc');
if (is_array($check) && !empty($check)) {
$data[$set] = array_merge($data[$set], $check);
}
}
}
}
return $data;
}