You are here

function xmlrpc_error in Drupal 6

Same name and namespace in other branches
  1. 4 includes/xmlrpc.inc \xmlrpc_error()
  2. 5 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 373
Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 Version 1.7 (beta) - Simon Willison, 23rd May 2005 Site: http://scripts.incutio.com/xmlrpc/ Manual: http://scripts.incutio.com/xmlrpc/manual.php This…

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