function drd_server_error in Drupal Remote Dashboard Server 7
Same name and namespace in other branches
- 6.2 drd_server.module \drd_server_error()
- 6 drd_server.module \drd_server_error()
- 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()
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)));
}