CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Contact / Create.php
index 19d637bbd5df6685c8e58c37567983e1b55368da..5720faef5542269eac2d251732575c324d6594a3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using contact create API.
+ * Test Generated example demonstrating the Contact.create API.
  *
  * This demonstrates setting a custom field through the API.
  *
@@ -16,7 +16,7 @@ function contact_create_example() {
   );
 
   try{
-    $result = civicrm_api3('contact', 'create', $params);
+    $result = civicrm_api3('Contact', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -104,11 +104,10 @@ function contact_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateWithCustom
-* and can be found in
+* The test that created it is called "testCreateWithCustom"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ContactTest.php
 *
 * You can see the outcome of the API tests at