6 function custom_value_get_example(){
11 'format.field_names' => 1,
14 $result = civicrm_api( 'custom_value','get',$params );
20 * Function returns array of result expected from previous function
22 function custom_value_get_expectedresult(){
24 $expectedResult = array(
29 'mySingleField' => array(
31 'latest' => 'value 1',
32 'id' => 'mySingleField',
35 'Cust_Field' => array(
44 'latest' => 'value 4',
59 return $expectedResult ;
64 * This example has been generated from the API test suite. The test that created it is called
66 * testGetMultipleCustomValues and can be found in
67 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/CustomValueTest.php
69 * You can see the outcome of the API tests at
70 * http://tests.dev.civicrm.org/trunk/results-api_v3
72 * To Learn about the API read
73 * http://book.civicrm.org/developer/current/techniques/api/
75 * and review the wiki at
76 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
78 * Read more about testing here
79 * http://wiki.civicrm.org/confluence/display/CRM/Testing
81 * API Standards documentation:
82 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards