CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Setting / CreateAllDomains.php
index 2e54b93bf2c83b3a177715efbd193e977902e497..ec2115963355a78e42cc667429417a3ae23d63c0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using setting create API.
+ * Test Generated example demonstrating the Setting.create API.
  *
  * Shows setting a variable for all domains.
  *
@@ -14,7 +14,7 @@ function setting_create_example() {
   );
 
   try{
-    $result = civicrm_api3('setting', 'create', $params);
+    $result = civicrm_api3('Setting', 'create', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -59,11 +59,10 @@ function setting_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateSettingMultipleDomains
-* and can be found in
+* The test that created it is called "testCreateSettingMultipleDomains"
+* and can be found at:
 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php
 *
 * You can see the outcome of the API tests at