? 521346.patch
? 558082.patch
? 635960.patch
? services-doc.patch
Index: services.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/Attic/services.module,v
retrieving revision 1.8.2.88.2.12
diff -u -p -r1.8.2.88.2.12 services.module
--- services.module	5 Dec 2009 01:42:38 -0000	1.8.2.88.2.12
+++ services.module	7 Dec 2009 21:35:20 -0000
@@ -223,6 +223,9 @@ function services_get_server_info($serve
 function services_error($message, $code = 0, $exception = NULL) {
   $server_info = services_get_server_info();
 
+  // Allow external modules to log this error
+  module_invoke_all('services_error', $message, $code, $exception);
+
   // Look for custom error handling function.
   // Should be defined in each server module.
   if ($server_info && module_hook($server_info->module, 'server_error')) {
@@ -350,6 +353,9 @@ function services_auth_invoke_custom($mo
  * @return mixed
  */
 function services_method_call($method_name, $args = array(), $browsing = FALSE) {
+  // Allow external modules to log the results of this service call
+  module_invoke_all('services_method_call', $method_name, $args, $browsing);
+
   if (is_array($method_name) && isset($method_name['callback'])) {
     $method = $method_name;
   }
@@ -418,6 +424,9 @@ function services_method_call($method_na
     chdir($server_root);
   }
 
+  // Allow external modules to log the results of this service call
+  module_invoke_all('services_method_call_results', $method_name, $args, $browsing, $result);
+
   return $result;
 }
 
