<?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
*
$params = array();
try{
- $result = civicrm_api3('setting', 'getfields', $params);
+ $result = civicrm_api3('Setting', 'getfields', $params);
}
catch (CiviCRM_API3_Exception $e) {
// Handle error here.
'html_type' => 'Text',
'default' => '',
'add' => '4.3',
- 'title' => 'Recaptcha Public Key',
+ 'title' => 'Recaptcha Site Key',
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'html_type' => 'Text',
'default' => '',
'add' => '4.3',
- 'title' => 'Recaptcha Private Key',
+ 'title' => 'Recaptcha Secret Key',
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'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',
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