Merge pull request #9773 from monishdeb/CRM-19663
[civicrm-core.git] / api / v3 / examples / ActivityType / Get.php
index b6e93f75a9e553fe1d847b75280d4a36425f732a..3befa05035d7e485d1fc4e5bb1c4229caf9c3886 100644 (file)
@@ -20,7 +20,8 @@ function activity_type_get_example() {
     $errorCode = $e->getErrorCode();
     $errorData = $e->getExtraParams();
     return array(
-      'error' => $errorMessage,
+      'is_error' => 1,
+      'error_message' => $errorMessage,
       'error_code' => $errorCode,
       'error_data' => $errorData,
     );
@@ -40,7 +41,7 @@ function activity_type_get_expectedresult() {
   $expectedResult = array(
     'is_error' => 0,
     'version' => 3,
-    'count' => 50,
+    'count' => 54,
     'values' => array(
       '1' => 'Meeting',
       '2' => 'Phone Call',
@@ -63,7 +64,7 @@ function activity_type_get_expectedresult() {
       '19' => 'Bulk Email',
       '20' => 'Assign Case Role',
       '21' => 'Remove Case Role',
-      '22' => 'Print PDF Letter',
+      '22' => 'Print/Merge Document',
       '23' => 'Merge Case',
       '24' => 'Reassigned Case',
       '25' => 'Link Cases',
@@ -92,6 +93,10 @@ function activity_type_get_expectedresult() {
       '48' => 'Change Registration',
       '49' => 'Downloaded Invoice',
       '50' => 'Emailed Invoice',
+      '51' => 'Contact Merged',
+      '52' => 'Contact Deleted by Merge',
+      '53' => 'Failed Payment',
+      '54' => 'Close Accounting Period',
     ),
     'deprecated' => 'The ActivityType api is deprecated. Please use the OptionValue api instead.',
   );