X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FContact%2FAPIChainedArrayValuesFromSiblingFunction.php;h=6bca265586b6a07580e2d29c5694e23008c542fc;hb=5913f06082d07d21116e2d30a82859a375819ef4;hp=55a690da3153db64d7501f7b3ac62bb71ebb945f;hpb=a828d7b823956a46f5a3cea184389c9b108f80ac;p=civicrm-core.git diff --git a/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.php b/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.php index 55a690da31..6bca265586 100644 --- a/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.php +++ b/api/v3/examples/Contact/APIChainedArrayValuesFromSiblingFunction.php @@ -31,7 +31,8 @@ function contact_create_example() { $errorCode = $e->getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -52,10 +53,10 @@ function contact_create_expectedresult() { 'is_error' => 0, 'version' => 3, 'count' => 1, - 'id' => 1, + 'id' => 3, 'values' => array( - '1' => array( - 'id' => '1', + '3' => array( + 'id' => '3', 'contact_type' => 'Individual', 'contact_sub_type' => '', 'do_not_email' => 0, @@ -66,7 +67,7 @@ function contact_create_expectedresult() { 'is_opt_out' => 0, 'legal_identifier' => '', 'external_identifier' => '', - 'sort_name' => '', + 'sort_name' => 'batman', 'display_name' => 'batman', 'nick_name' => '', 'legal_name' => '',