X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FSetting%2FGetFields.php;h=40036da3b562207c61cdaccea4bcb6ea8ca9a726;hb=ec36654545f74a355cf5453218e34eeb0d0df5c1;hp=b08a94cacde9f50c1a58efa8e594c2249c977283;hpb=7a67a900ec8ee6322f2a199b59a0ab7fe1ea3e56;p=civicrm-core.git diff --git a/api/v3/examples/Setting/GetFields.php b/api/v3/examples/Setting/GetFields.php index b08a94cacd..40036da3b5 100644 --- a/api/v3/examples/Setting/GetFields.php +++ b/api/v3/examples/Setting/GetFields.php @@ -1,6 +1,6 @@ 'When enabled, \"empowered by CiviCRM\" is displayed at the bottom of public forms.', 'help_text' => '', ), - 'debug_enabled' => array( + 'userFrameworkLogging' => array( 'group_name' => 'Developer Preferences', 'group' => 'developer', - 'name' => 'debug_enabled', - 'config_key' => 'debug', + 'name' => 'userFrameworkLogging', 'type' => 'Boolean', 'quick_form_type' => 'YesNo', 'default' => 0, 'add' => '4.3', - 'title' => 'Enable Debugging', + 'title' => 'Enable Drupal Watchdog Logging', 'is_domain' => 1, 'is_contact' => 0, - 'description' => 'Set this value to Yes if you want to use one of CiviCRM\'s debugging tools. This feature should NOT be enabled for production sites', + 'description' => 'Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs', 'prefetch' => 1, - 'help_text' => 'Do not turn this on on production sites', + 'help_text' => 'Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS\' error log. In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal\'s watchdog enabled)', ), - 'userFrameworkLogging' => array( + 'debug_enabled' => array( 'group_name' => 'Developer Preferences', 'group' => 'developer', - 'name' => 'userFrameworkLogging', + 'name' => 'debug_enabled', + 'config_key' => 'debug', 'type' => 'Boolean', 'quick_form_type' => 'YesNo', 'default' => 0, 'add' => '4.3', - 'title' => 'Enable Drupal Watchdog Logging', + 'title' => 'Enable Debugging', 'is_domain' => 1, 'is_contact' => 0, - 'description' => 'Set this value to Yes if you want CiviCRM error/debugging messages to also appear in Drupal error logs', + 'description' => 'Set this value to Yes if you want to use one of CiviCRM\'s debugging tools. This feature should NOT be enabled for production sites', 'prefetch' => 1, - 'help_text' => 'Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS\' error log. In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal\'s watchdog enabled)', + 'help_text' => 'Do not turn this on on production sites', ), 'backtrace' => array( 'group_name' => 'Developer Preferences', @@ -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