projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated example & a couple of tidy ups to throw API_Exception rather than legacy
[civicrm-core.git]
/
api
/
v3
/
examples
/
Contact
/
GetFieldsOptions.php
diff --git
a/api/v3/examples/Contact/GetFieldsOptions.php
b/api/v3/examples/Contact/GetFieldsOptions.php
index 73f989bc360635d1576b49e7b5e1c104603e4903..4337b348705ad811d8a7574d3a8484f919f3f3ff 100644
(file)
--- a/
api/v3/examples/Contact/GetFieldsOptions.php
+++ b/
api/v3/examples/Contact/GetFieldsOptions.php
@@
-574,6
+574,7
@@
function contact_getfields_expectedresult(){
'date_format' => '',
'time_format' => '',
'name' => 'custom_1',
'date_format' => '',
'time_format' => '',
'name' => 'custom_1',
+ 'type' => 2,
'options' => array(
'1' => 'Label1',
'2' => 'Label2',
'options' => array(
'1' => 'Label1',
'2' => 'Label2',
@@
-582,6
+583,7
@@
function contact_getfields_expectedresult(){
'current_employer' => array(
'title' => 'Current Employer',
'description' => 'Name of Current Employer',
'current_employer' => array(
'title' => 'Current Employer',
'description' => 'Name of Current Employer',
+ 'type' => 2,
),
'dupe_check' => array(
'title' => 'Check for Duplicates',
),
'dupe_check' => array(
'title' => 'Check for Duplicates',