Same name and namespace in other branches
  1. 4.6.x includes/xmlrpc.inc \xmlrpc_error()
  2. 5.x includes/xmlrpc.inc \xmlrpc_error()
  3. 6.x includes/xmlrpc.inc \xmlrpc_error()
  4. 7.x 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.

... See full list

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;
}