Index: server/pifr_server.test.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue_file_review/server/pifr_server.test.inc,v
retrieving revision 1.56
diff -u -r1.56 pifr_server.test.inc
--- server/pifr_server.test.inc	3 Nov 2009 22:22:06 -0000	1.56
+++ server/pifr_server.test.inc	3 Dec 2009 22:07:45 -0000
@@ -240,7 +240,7 @@
 }
 
 /**
- * Perform test send event operations.
+ * Perform test sent event operations.
  *
  * @param array $test Test information.
  * @param array $client Client information.
@@ -311,6 +311,9 @@
   // the test may be re-enabled.
   if ($test['type'] == PIFR_SERVER_TEST_TYPE_CLIENT) {
     pifr_server_client_confirmation_check($client, $result);
+
+    // Invoke hook_pifr_server_result().
+    module_invoke_all('pifr_server_client_result', $test, $result);
   }
   elseif ($test['type'] == PIFR_SERVER_TEST_TYPE_BRANCH) {
     // Branch result may effect related files.
@@ -324,6 +327,9 @@
       pifr_server_file_branch_update($branch['branch_id'], PIFR_SERVER_TEST_STATUS_QUEUED, PIFR_SERVER_TEST_STATUS_POSTPONED);
     }
   }
+
+  // Invoke hook_pifr_server_result().
+  module_invoke_all('pifr_server_result', $test, $result);
 }
 
 /**
Index: server/pifr_server.api.inc
===================================================================
RCS file: server/pifr_server.api.inc
diff -N server/pifr_server.api.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ server/pifr_server.api.inc	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,39 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Provides documentation of API hooks.
+ *
+ * Copyright 2008-2009 by Jimmy Berry ("boombatower", http://drupal.org/user/214218)
+ */
+
+/**
+ * Called when a result is received from a test client.
+ *
+ * @param array $test Test information.
+ * @param array $result Most result information.
+ */
+function hook_pifr_server_result($test, $result) {
+  // Ensure that testing is complete.
+  if ($test['status'] == PIFR_SERVER_TEST_STATUS_RESULT) {
+    // Get the result that matters.
+    $result = pifr_server_result_summary_result($test['test_id']);
+  }
+}
+
+/**
+ * Called when a client test result is received from a test client.
+ *
+ * @param array $test Test information.
+ * @param array $result Most result information.
+ */
+function hook_pifr_server_client_result($test, $result) {
+  // Ensure that testing is complete.
+  if ($test['status'] == PIFR_SERVER_TEST_STATUS_RESULT) {
+    // Client associated with the test.
+    $client = pifr_server_client_get_test($test['test_id']);
+
+    // Get the result that matters.
+    $result = pifr_server_result_summary_result($test['test_id']);
+  }
+}
