You are here

function xmlrpc_error in Drupal 5

Same name and namespace in other branches
  1. 4 includes/xmlrpc.inc \xmlrpc_error()
  2. 6 includes/xmlrpc.inc \xmlrpc_error()
  3. 7 includes/xmlrpc.inc \xmlrpc_error()
9 calls to xmlrpc_error()
blogapi_error in modules/blogapi/blogapi.module
Prepare an error message for returning to the XMLRPC caller.
xmlrpc_clear_error in includes/xmlrpc.inc
Clears any previous error.
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.

... See full list

File

includes/xmlrpc.inc, line 345

Code

function xmlrpc_error($code = NULL, $message = NULL, $reset = FALSE) {
  static $xmlrpc_error;
  if (isset($code)) {
    $xmlrpc_error = new stdClass();
    $xmlrpc_error->is_error = TRUE;
    $xmlrpc_error->code = $code;
    $xmlrpc_error->message = $message;
  }
  elseif ($reset) {
    $xmlrpc_error = NULL;
  }
  return $xmlrpc_error;
}