You are here

function drd_server_result in Drupal Remote Dashboard Server 6.2

Same name and namespace in other branches
  1. 6 drd_server.module \drd_server_result()
  2. 7.2 drd_server.module \drd_server_result()
  3. 7 drd_server.module \drd_server_result()

Prepare the result for returning it to the XMLRPC caller.

Parameters

$mode: The function that was called by the XMLRPC caller.

$drd_result: The result from the drd_server functions to be returned after hooks and alterers have been called.

$args: More arguments if available and/or required.

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
drd_server_config_save in ./drd_server.module
drd_server_config_server_read in ./drd_server.module
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.

... See full list

File

./drd_server.module, line 754

Code

function drd_server_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);
}