X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FContact%2FGetActions.php;h=585e5e8dca83137190c6126b0b619d2837f1ad06;hb=d0aa0e47dbc57fc335bcc2bcb3206100aa678a25;hp=12012f6949561078daff496d4ebf1d5f543b0717;hpb=ace706265dd7034522732b4e65825f5cb8a76360;p=civicrm-core.git diff --git a/api/v3/examples/Contact/GetActions.php b/api/v3/examples/Contact/GetActions.php index 12012f6949..585e5e8dca 100644 --- a/api/v3/examples/Contact/GetActions.php +++ b/api/v3/examples/Contact/GetActions.php @@ -19,7 +19,8 @@ function contact_getactions_example() { $errorCode = $e->getErrorCode(); $errorData = $e->getExtraParams(); return array( - 'error' => $errorMessage, + 'is_error' => 1, + 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, ); @@ -39,31 +40,28 @@ function contact_getactions_expectedresult() { $expectedResult = array( 'is_error' => 0, 'version' => 3, - 'count' => 23, + 'count' => 20, 'values' => array( '0' => 'create', '1' => 'delete', - '2' => 'example_action1', - '3' => 'example_action2', - '4' => 'get', - '5' => 'getactions', - '6' => 'getcount', + '2' => 'duplicatecheck', + '3' => 'get', + '4' => 'getactions', + '5' => 'getcount', + '6' => 'getfield', '7' => 'getfields', '8' => 'getlist', '9' => 'getoptions', '10' => 'getquick', '11' => 'getrefcount', '12' => 'getsingle', - '13' => 'getstat', - '14' => 'getvalue', - '15' => 'merge', - '16' => 'proximity', - '17' => 'replace', - '18' => 'setvalue', - '19' => 'type_create', - '20' => 'type_delete', - '21' => 'type_get', - '22' => 'update', + '13' => 'getvalue', + '14' => 'merge', + '15' => 'proximity', + '16' => 'replace', + '17' => 'setvalue', + '18' => 'update', + '19' => 'validate', ), 'deprecated' => array( 'getquick' => 'The "getquick" action is deprecated in favor of "getlist".',