CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / UFField / Create.php
index 4574229cfeeed0573a573d02b4525ee547bf9b00..ec39ee0013833f21a10c5ba5d5be1f6cec1efdd0 100644 (file)
@@ -1,13 +1,6 @@
 <?php
 /**
- * @file
- * Test Generated API Example.
- * See bottom of this file for more detail.
- */
-
-/**
- * Test Generated example of using uf_field create API.
- *
+ * Test Generated example demonstrating the UFField.create API.
  *
  * @return array
  *   API result array
@@ -27,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.
@@ -85,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
@@ -99,7 +91,7 @@ function uf_field_create_expectedresult() {
 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
 *
 * Browse the api on your own site with the api explorer
-* http://MYSITE.ORG/path/to/civicrm/api/explorer
+* http://MYSITE.ORG/path/to/civicrm/api
 *
 * Read more about testing here
 * http://wiki.civicrm.org/confluence/display/CRM/Testing