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