xmlrpc_error

Versions
4.6 – 4.7
xmlrpc_error($code = NULL, $message = NULL)
5 – 6
xmlrpc_error($code = NULL, $message = NULL, $reset = FALSE)
7
xmlrpc_error($code = NULL, $message = NULL)

▾ 8 functions call xmlrpc_error()

blogapi_error in modules/blogapi.module
Prepare an error message for returning to the XMLRPC caller.
xmlrpc in includes/xmlrpc.inc
Perform an XML-RPC request.
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
xmlrpc_server_error in includes/xmlrpcs.inc
xmlrpc_server_method_signature in includes/xmlrpcs.inc
xmlrpc_server_multicall in includes/xmlrpcs.inc

Code

includes/xmlrpc.inc, line 292

<?php
function xmlrpc_error($code = NULL, $message = NULL) {
  static $xmlrpc_error;
  if ($code) {
    $xmlrpc_error = new stdClass();
    $xmlrpc_error->is_error = TRUE;
    $xmlrpc_error->code = $code;
    $xmlrpc_error->message = $message;
  }
  return $xmlrpc_error;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.