CRM-15988 - Update generated examples
[civicrm-core.git] / api / v3 / examples / Setting / Create.php
index 6436b6f8dce9a63f034ec8d4b852469b1364ac3e..466890049cfd068a2b8245e18d50d3fac2571339 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using setting create API.
+ * Test Generated example demonstrating the Setting.create API.
  *
  * @return array
  *   API result array
@@ -12,7 +12,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.
@@ -52,11 +52,10 @@ function setting_create_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testCreateSetting
-* and can be found in
+* The test that created it is called "testCreateSetting"
+* 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