You are here

function casetracker_xmlrpc_error in Case Tracker 5

Prepare an error message for returning to the XML-RPC caller. Stolen and slightly modified from blogapi_error().

1 call to casetracker_xmlrpc_error()
casetracker_xmlrpc_new_case in ./casetracker_xmlrpc.module
XML-RPC handler; creates a new case based on incoming values.

File

./casetracker_xmlrpc.module, line 81
Enables Case Tracker cases to be created via XML-RPC.

Code

function casetracker_xmlrpc_error($message) {
  static $xmlrpcusererr;

  // stolen from blogapi_error. heathens.
  return xmlrpc_error($xmlrpcusererr + 1, strip_tags($message));
}