projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update test generated examples
[civicrm-core.git]
/
api
/
v3
/
examples
/
Contact
/
CustomFieldGet.php
diff --git
a/api/v3/examples/Contact/CustomFieldGet.php
b/api/v3/examples/Contact/CustomFieldGet.php
index d9ba8f04d9788d132a6827bda2ae4c87b0e1c2d1..5806b7cb4c29ad3e011ecbdfa2a76fcc0128308f 100644
(file)
--- a/
api/v3/examples/Contact/CustomFieldGet.php
+++ b/
api/v3/examples/Contact/CustomFieldGet.php
@@
-4,12
+4,12
@@
/*this demonstrates setting a custom field through the API
*/
function contact_get_example(){
/*this demonstrates setting a custom field through the API
*/
function contact_get_example(){
-$params = array(
+$params = array(
'first_name' => 'abc1',
'contact_type' => 'Individual',
'last_name' => 'xyz1',
'version' => 3,
'first_name' => 'abc1',
'contact_type' => 'Individual',
'last_name' => 'xyz1',
'version' => 3,
- 'custom_
2
' => 'custom string',
+ 'custom_
3
' => 'custom string',
);
$result = civicrm_api( 'contact','get',$params );
);
$result = civicrm_api( 'contact','get',$params );
@@
-22,16
+22,16
@@
$params = array(
*/
function contact_get_expectedresult(){
*/
function contact_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'contact_id' => '1',
'contact_id' => '1',
- 'civicrm_value_testgetwithcu_
2
_id' => '1',
- 'custom_
2
' => 'custom string',
+ 'civicrm_value_testgetwithcu_
3
_id' => '1',
+ 'custom_
3
' => 'custom string',
'id' => '1',
),
),
'id' => '1',
),
),