6 function option_value_get_example(){
8 'option_group_id' => 1,
12 $result = civicrm_api( 'option_value','get',$params );
18 * Function returns array of result expected from previous function
20 function option_value_get_expectedresult(){
22 $expectedResult = array(
29 'option_group_id' => '1',
40 'option_group_id' => '1',
51 'option_group_id' => '1',
52 'label' => 'Postal Mail',
62 'option_group_id' => '1',
73 'option_group_id' => '1',
85 return $expectedResult ;
90 * This example has been generated from the API test suite. The test that created it is called
92 * testGetOptionGroup and can be found in
93 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/OptionValueTest.php
95 * You can see the outcome of the API tests at
96 * http://tests.dev.civicrm.org/trunk/results-api_v3
98 * To Learn about the API read
99 * http://book.civicrm.org/developer/current/techniques/api/
101 * and review the wiki at
102 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
104 * Read more about testing here
105 * http://wiki.civicrm.org/confluence/display/CRM/Testing
107 * API Standards documentation:
108 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards