6 function price_field_create_example(){
10 'name' => 'grassvariety',
11 'label' => 'Grass Variety',
12 'html_type' => 'Text',
17 $result = civicrm_api( 'price_field','create',$params );
23 * Function returns array of result expected from previous function
25 function price_field_create_expectedresult(){
27 $expectedResult = array(
35 'price_set_id' => '3',
36 'name' => 'grassvariety',
37 'label' => 'Grass Variety',
38 'html_type' => 'Text',
39 'is_enter_qty' => '1',
43 'is_display_amounts' => '',
44 'options_per_line' => '',
50 'visibility_id' => '',
55 return $expectedResult ;
60 * This example has been generated from the API test suite. The test that created it is called
62 * testCreatePriceField and can be found in
63 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PriceFieldTest.php
65 * You can see the outcome of the API tests at
66 * http://tests.dev.civicrm.org/trunk/results-api_v3
68 * To Learn about the API read
69 * http://book.civicrm.org/developer/current/techniques/api/
71 * and review the wiki at
72 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
74 * Read more about testing here
75 * http://wiki.civicrm.org/confluence/display/CRM/Testing
77 * API Standards documentation:
78 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards