function drd_server_error in Drupal Remote Dashboard Server 6
Same name and namespace in other branches
- 6.2 drd_server.module \drd_server_error()
- 7.2 drd_server.module \drd_server_error()
- 7 drd_server.module \drd_server_error()
Prepare an error message for returning to the XMLRPC caller.
12 calls to drd_server_error()
File
- ./
drd_server.module, line 149
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)));
}