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