6 function option_group_get_example(){
8 'name' => 'preferred_communication_method',
13 $result = civicrm_api( 'option_group','get',$params );
19 * Function returns array of result expected from previous function
21 function option_group_get_expectedresult(){
23 $expectedResult = array(
31 'name' => 'preferred_communication_method',
32 'title' => 'Preferred Communication Method',
39 return $expectedResult ;
44 * This example has been generated from the API test suite. The test that created it is called
46 * testGetOptionGroupByName and can be found in
47 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/OptionGroupTest.php
49 * You can see the outcome of the API tests at
50 * http://tests.dev.civicrm.org/trunk/results-api_v3
52 * To Learn about the API read
53 * http://book.civicrm.org/developer/current/techniques/api/
55 * and review the wiki at
56 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
58 * Read more about testing here
59 * http://wiki.civicrm.org/confluence/display/CRM/Testing
61 * API Standards documentation:
62 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards