updated example & a couple of tidy ups to throw API_Exception rather than legacy
[civicrm-core.git] / api / v3 / examples / Contact / GetFieldsOptions.php
index 73f989bc360635d1576b49e7b5e1c104603e4903..4337b348705ad811d8a7574d3a8484f919f3f3ff 100644 (file)
@@ -574,6 +574,7 @@ function contact_getfields_expectedresult(){
           'date_format' => '',
           'time_format' => '',
           'name' => 'custom_1',
+          'type' => 2,
           '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',
+          'type' => 2,
         ),
       'dupe_check' => array(
           'title' => 'Check for Duplicates',