CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Activity / Delete.php
index 9754a7adf02d1e9607da837d9d1d47f5bac6994b..f8c5be72ba5854ae560d2f4dec74d78d81c9e9c9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using activity delete API.
+ * Test Generated example demonstrating the Activity.delete API.
  *
  * @return array
  *   API result array
@@ -11,7 +11,7 @@ function activity_delete_example() {
   );
 
   try{
-    $result = civicrm_api3('activity', 'delete', $params);
+    $result = civicrm_api3('Activity', 'delete', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -46,11 +46,10 @@ function activity_delete_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testDeleteActivity
-* and can be found in
+* The test that created it is called "testDeleteActivity"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
 *
 * You can see the outcome of the API tests at