You are here

function drd_server_error in Drupal Remote Dashboard Server 7

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

Prepare an error message for returning to the XMLRPC caller.

Parameters

$message: The message to be sent to the XMLRPC caller.

Return value

Returns the encoded message.

12 calls to drd_server_error()
drd_server_connect in ./drd_server.module
Authenticate a user.
drd_server_domain_flush_cache in ./drd_server.domain.inc
drd_server_domain_info in ./drd_server.domain.inc
drd_server_domain_list_updates in ./drd_server.domain.inc
drd_server_domain_run_cron in ./drd_server.domain.inc

... See full list

File

./drd_server.module, line 187

Code

function drd_server_error($message) {
  static $xmlrpcusererr;
  if (!is_array($message)) {
    $message = array(
      $message,
    );
  }
  $message = implode(' ', $message);
  return drupal_json_encode(xmlrpc_error($xmlrpcusererr + 1, strip_tags($message)));
}