You are here

function services_error in Services 5

Same name and namespace in other branches
  1. 6.3 services.runtime.inc \services_error()
  2. 6 services.module \services_error()
  3. 6.2 services.module \services_error()
  4. 7.3 includes/services.runtime.inc \services_error()
  5. 7 services.module \services_error()

Prepare an error message for returning to the XMLRPC caller.

11 calls to services_error()
node_service_load in services/node_service/node_service.module
Returns a specified node.
node_service_save in services/node_service/node_service.module
node_service_view in services/node_service/node_service.module
search_service_search_nodes in services/search_service/search_service.module
search_service_search_users in services/search_service/search_service.module

... See full list

File

./services.module, line 312
The module which provides the core code for drupal services

Code

function services_error($message) {
  $server_info = services_get_server_info();

  // Look for custom error handling function.
  // Should be defined in each server module.
  if ($server_info && module_hook($server_info->module, 'server_error')) {
    return module_invoke($server_info->module, 'server_error', $message);
  }

  // No custom error handling function found.
  return $message;
}