function xmlrpc_error in Drupal 4
Same name and namespace in other branches
- 5 includes/xmlrpc.inc \xmlrpc_error()
- 6 includes/xmlrpc.inc \xmlrpc_error()
- 7 includes/xmlrpc.inc \xmlrpc_error()
8 calls to xmlrpc_error()
- blogapi_error in modules/
blogapi.module - Prepare an error message for returning to the XMLRPC caller.
- xmlrpc_errno in includes/
xmlrpc.inc - Returns the last XML-RPC client error number
- xmlrpc_error_msg in includes/
xmlrpc.inc - Returns the last XML-RPC client error message
- xmlrpc_server_call in includes/
xmlrpcs.inc - Dispatch the request and any parameters to the appropriate handler.
- xmlrpc_server_error in includes/
xmlrpcs.inc - Throw an XML-RPC error.
File
- includes/
xmlrpc.inc, line 345
Code
function xmlrpc_error($code = NULL, $message = NULL) {
static $xmlrpc_error;
if (isset($code)) {
$xmlrpc_error = new stdClass();
$xmlrpc_error->is_error = TRUE;
$xmlrpc_error->code = $code;
$xmlrpc_error->message = $message;
}
return $xmlrpc_error;
}