CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Activity / Create.php
index 8659e8e06aa0fdec8c60843bdca2e6c39fb89d8a..ecb37836bb18a8ccd9af801e52dfff49dae27931 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using activity create API.
- *
+ * Test Generated example demonstrating the Activity.create API.
  *
  * @return array
  *   API result array
@@ -21,7 +20,7 @@ function activity_create_example() {
   );
 
   try{
-    $result = civicrm_api3('activity', 'create', $params);
+    $result = civicrm_api3('Activity', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -84,11 +83,10 @@ function activity_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testActivityCreateCustom
-* and can be found in
+* The test that created it is called "testActivityCreateCustom"
+* 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