CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / UFGroup / Create.php
index 5798664754815d3f4ee72b14dc3091e532dfde1e..fdf7ada9352970353a5dab2f30ffa29e62dc2a8d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using uf_group create API.
+ * Test Generated example demonstrating the UFGroup.create API.
  *
  * @return array
  *   API result array
@@ -30,7 +30,7 @@ function uf_group_create_example() {
   );
 
   try{
-    $result = civicrm_api3('uf_group', 'create', $params);
+    $result = civicrm_api3('UFGroup', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -92,11 +92,10 @@ function uf_group_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testUFGroupCreate
-* and can be found in
+* The test that created it is called "testUFGroupCreate"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/UFGroupTest.php
 *
 * You can see the outcome of the API tests at