6 function option_group_create_example(){
10 'name' => 'civicrm_event.amount.560',
13 'api.OptionValue.create' => array(
14 'label' => 'workshop',
18 'format.only_id' => 1,
23 $result = civicrm_api( 'option_group','create',$params );
29 * Function returns array of result expected from previous function
31 function option_group_create_expectedresult(){
33 $expectedResult = array(
41 'name' => 'civicrm_event.amount.560',
46 'api.OptionValue.create' => 720,
51 return $expectedResult ;
56 * This example has been generated from the API test suite. The test that created it is called
58 * testGetOptionCreateSuccess and can be found in
59 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/OptionGroupTest.php
61 * You can see the outcome of the API tests at
62 * http://tests.dev.civicrm.org/trunk/results-api_v3
64 * To Learn about the API read
65 * http://book.civicrm.org/developer/current/techniques/api/
67 * and review the wiki at
68 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
70 * Read more about testing here
71 * http://wiki.civicrm.org/confluence/display/CRM/Testing
73 * API Standards documentation:
74 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards