CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / CustomGroup / Delete.php
index f087ff537599094bde442aa078cd6da4f2b79a83..429be45180909d76ca0903b2abfaa57fcc15cb55 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 /**
- * Test Generated example of using custom_group delete API.
- *
+ * Test Generated example demonstrating the CustomGroup.delete API.
  *
  * @return array
  *   API result array
@@ -12,7 +11,7 @@ function custom_group_delete_example() {
   );
 
   try{
-    $result = civicrm_api3('custom_group', 'delete', $params);
+    $result = civicrm_api3('CustomGroup', 'delete', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -47,11 +46,10 @@ function custom_group_delete_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCustomGroupDelete
-* and can be found in
+* The test that created it is called "testCustomGroupDelete"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/CustomGroupTest.php
 *
 * You can see the outcome of the API tests at