63ea1d2844fdea29c15dd0ccb57d3bf5f10797d2
6 function activity_type_create_example(){
9 'label' => 'send out letters',
17 $result = civicrm_api( 'activity_type','create',$params );
23 * Function returns array of result expected from previous function
25 function activity_type_create_expectedresult(){
27 $expectedResult = array(
35 'option_group_id' => '2',
36 'label' => 'send out letters',
38 'name' => 'send out letters',
49 'visibility_id' => '',
54 return $expectedResult ;
59 * This example has been generated from the API test suite. The test that created it is called
61 * testActivityTypeCreate and can be found in
62 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ActivityTypeTest.php
64 * You can see the outcome of the API tests at
65 * http://tests.dev.civicrm.org/trunk/results-api_v3
67 * To Learn about the API read
68 * http://book.civicrm.org/developer/current/techniques/api/
70 * and review the wiki at
71 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
73 * Read more about testing here
74 * http://wiki.civicrm.org/confluence/display/CRM/Testing
76 * API Standards documentation:
77 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards