CRM-17407 renaming recaptcha keys
[civicrm-core.git] / api / v3 / examples / Setting / GetFields.php
index 9c9cabb8f645aca551bc5cf1a084d8ec6c3820b6..c797b6fe9548be5f324a560001c382749ddc1b2a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Test Generated example of using setting getfields API.
+ * Test Generated example demonstrating the Setting.getfields API.
  *
  * Demonstrate return from getfields - see subfolder for variants
  *
@@ -11,7 +11,7 @@ function setting_getfields_example() {
   $params = array();
 
   try{
-    $result = civicrm_api3('setting', 'getfields', $params);
+    $result = civicrm_api3('Setting', 'getfields', $params);
   }
   catch (CiviCRM_API3_Exception $e) {
     // Handle error here.
@@ -667,7 +667,7 @@ function setting_getfields_expectedresult() {
         'html_type' => 'Text',
         'default' => '',
         'add' => '4.3',
-        'title' => 'Recaptcha Public Key',
+        'title' => 'Recaptcha Site Key',
         'is_domain' => 1,
         'is_contact' => 0,
         'description' => '',
@@ -688,7 +688,7 @@ function setting_getfields_expectedresult() {
         'html_type' => 'Text',
         'default' => '',
         'add' => '4.3',
-        'title' => 'Recaptcha Private Key',
+        'title' => 'Recaptcha Secret Key',
         'is_domain' => 1,
         'is_contact' => 0,
         'description' => '',
@@ -947,21 +947,6 @@ function setting_getfields_expectedresult() {
         'description' => 'Set this value to Yes if you want to display a backtrace listing when a fatal error is encountered. This feature should NOT be enabled for production sites',
         'prefetch' => 1,
       ),
-      'fatalErrorTemplate' => array(
-        'group_name' => 'Developer Preferences',
-        'group' => 'developer',
-        'name' => 'fatalErrorTemplate',
-        'type' => 'String',
-        'quick_form_type' => 'Element',
-        'html_type' => 'text',
-        'default' => 'CRM/common/fatal.tpl',
-        'add' => '4.3',
-        'title' => 'Fatal Error Template',
-        'is_domain' => 1,
-        'is_contact' => 0,
-        'description' => 'Enter the path and filename for a custom Smarty template if you want to define your own screen for displaying fatal errors.',
-        'prefetch' => 1,
-      ),
       'fatalErrorHandler' => array(
         'group_name' => 'Developer Preferences',
         'group' => 'developer',
@@ -1623,11 +1608,10 @@ function setting_getfields_expectedresult() {
   return $expectedResult;
 }
 
-/**
+/*
 * This example has been generated from the API test suite.
-* The test that created it is called
-* testGetFields
-* and can be found in
+* The test that created it is called "testGetFields"
+* 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