CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / UFField / Create.php
index 2cc1157dd4d069be1e085d6c01e896b943f61bba..ec39ee0013833f21a10c5ba5d5be1f6cec1efdd0 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using uf_field create API.
- *
+ * Test Generated example demonstrating the UFField.create API.
  *
  * @return array
  *   API result array
@@ -21,7 +20,7 @@ function uf_field_create_example() {
   );
 
   try{
-    $result = civicrm_api3('uf_field', 'create', $params);
+    $result = civicrm_api3('UFField', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -79,11 +78,10 @@ function uf_field_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateUFField
-* and can be found in
+* The test that created it is called "testCreateUFField"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFFieldTest.php
 *
 * You can see the outcome of the API tests at