function drd_server_result in Drupal Remote Dashboard Server 7.2
Same name and namespace in other branches
- 6.2 drd_server.module \drd_server_result()
- 6 drd_server.module \drd_server_result()
- 7 drd_server.module \drd_server_result()
Prepare the result for returning it to the XMLRPC caller.
Parameters
string $mode: The function that was called by the XMLRPC caller.
string $drd_result: The result from the drd_server functions to be returned after hooks and alterers have been called.
Return value
string Returns the final result to be sent to the XMLRPC caller.
20 calls to drd_server_result()
- drd_server_config_domain_read in ./
drd_server.module - Callback to retrieve a (sub-)form for Domain configuration.
- drd_server_config_save in ./
drd_server.module - Callback to save form values, either for Core or Domain.
- drd_server_config_server_read in ./
drd_server.module - Callback to retrieve a (sub-)form for Core configuration.
- drd_server_domain_flush_cache in ./
drd_server.domain.inc - DRD Server Action to flush all caches from the current domain.
- drd_server_domain_info in ./
drd_server.domain.inc - DRD Server Action to retrieve all kind of information from the current domain.
File
- ./
drd_server.module, line 962 - Provides XMLRPC implementation to respond to requests from DRD.
Code
function drd_server_result($mode, $drd_result) {
$args = func_get_args();
$mode = array_shift($args);
$drd_result = array_shift($args);
foreach (module_implements('drd_server_result') as $module) {
$drd_result = module_invoke($module, 'drd_server_result', $mode, $drd_result, $args);
}
drupal_alter('drd_server_result', $drd_result);
$result = new stdClass();
$result->message = $drd_result;
$result->messages = drupal_get_messages();
return drd_server_output($result);
}