6 function activity_type_delete_example(){
8 'activity_type_id' => 725,
12 $result = civicrm_api( 'activity_type','delete',$params );
18 * Function returns array of result expected from previous function
20 function activity_type_delete_expectedresult(){
22 $expectedResult = array(
24 'error_message' => 'Undefined index: activity_type_id',
27 return $expectedResult ;
32 * This example has been generated from the API test suite. The test that created it is called
34 * testActivityTypeDelete and can be found in
35 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ActivityTypeTest.php
37 * You can see the outcome of the API tests at
38 * http://tests.dev.civicrm.org/trunk/results-api_v3
40 * To Learn about the API read
41 * http://book.civicrm.org/developer/current/techniques/api/
43 * and review the wiki at
44 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
46 * Read more about testing here
47 * http://wiki.civicrm.org/confluence/display/CRM/Testing
49 * API Standards documentation:
50 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards