Merge pull request #9072 from jeromelebleu/patch-19386
[civicrm-core.git] / api / v3 / examples / ParticipantStatusType / Create.php
index ed6ab392e5c83d188d54f4c83996d319217ce5c0..9059a8b3225bcc6fb9c6298beaeb74d669ec5f8b 100644 (file)
@@ -26,7 +26,8 @@ function participant_status_type_create_example() {
     $errorCode = $e->getErrorCode();
     $errorData = $e->getExtraParams();
     return array(
-      'error' => $errorMessage,
+      'is_error' => 1,
+      'error_message' => $errorMessage,
       'error_code' => $errorCode,
       'error_data' => $errorData,
     );
@@ -47,10 +48,10 @@ function participant_status_type_create_expectedresult() {
     'is_error' => 0,
     'version' => 3,
     'count' => 1,
-    'id' => 17,
+    'id' => 18,
     'values' => array(
-      '17' => array(
-        'id' => '17',
+      '18' => array(
+        'id' => '18',
         'name' => 'test status',
         'label' => 'I am a test',
         'class' => 'Positive',