Merge pull request #15973 from kcristiano/5.20-msg-tpl
[civicrm-core.git] / settings / Developer.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2019 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2019
32 * $Id$
33 *
34 */
35 /*
36 * Settings metadata file
37 */
38
39 return [
40 'assetCache' => [
41 'group_name' => 'Developer Preferences',
42 'group' => 'developer',
43 'name' => 'assetCache',
44 'type' => 'String',
45 'quick_form_type' => 'Select',
46 'html_type' => 'Select',
47 'html_attributes' => [
48 //'class' => 'crm-select2',
49 ],
50 'default' => 'auto',
51 'add' => '4.7',
52 'title' => 'Asset Caching',
53 'is_domain' => 1,
54 'is_contact' => 0,
55 'description' => 'Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)',
56 'help_text' => NULL,
57 'pseudoconstant' => [
58 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
59 ],
60 ],
61 'userFrameworkLogging' => [
62 'group_name' => 'Developer Preferences',
63 'group' => 'developer',
64 'name' => 'userFrameworkLogging',
65 'type' => 'Boolean',
66 'quick_form_type' => 'YesNo',
67 'default' => '0',
68 'add' => '4.3',
69 'title' => 'Enable Drupal Watchdog Logging',
70 'is_domain' => 1,
71 'is_contact' => 0,
72 'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
73 '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)",
74 ],
75 'debug_enabled' => [
76 'group_name' => 'Developer Preferences',
77 'group' => 'developer',
78 'name' => 'debug_enabled',
79 // we can't call the setting debug as that has other meanings in api
80 'config_key' => 'debug',
81 'type' => 'Boolean',
82 'quick_form_type' => 'YesNo',
83 'default' => '0',
84 'add' => '4.3',
85 'title' => 'Enable Debugging',
86 'is_domain' => 1,
87 'is_contact' => 0,
88 '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",
89 'help_text' => 'Do not turn this on on production sites',
90 ],
91 'backtrace' => [
92 'group_name' => 'Developer Preferences',
93 'group' => 'developer',
94 'name' => 'backtrace',
95 'type' => 'Boolean',
96 'quick_form_type' => 'YesNo',
97 'default' => '0',
98 'add' => '4.3',
99 'title' => 'Display Backtrace',
100 'is_domain' => 1,
101 'is_contact' => 0,
102 '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",
103 ],
104 'environment' => [
105 'group_name' => 'Developer Preferences',
106 'group' => 'developer',
107 'name' => 'environment',
108 'type' => 'String',
109 'html_type' => 'Select',
110 'quick_form_type' => 'Select',
111 'default' => 'Production',
112 'pseudoconstant' => [
113 'optionGroupName' => 'environment',
114 ],
115 'add' => '4.7',
116 'title' => 'Environment',
117 'is_domain' => 1,
118 'is_contact' => 0,
119 'description' => "Setting to define the environment in which this CiviCRM instance is running.",
120 'on_change' => [
121 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
122 ],
123 ],
124 'fatalErrorHandler' => [
125 'group_name' => 'Developer Preferences',
126 'group' => 'developer',
127 'name' => 'fatalErrorHandler',
128 'type' => 'String',
129 'quick_form_type' => 'Element',
130 'html_type' => 'text',
131 'default' => NULL,
132 'add' => '4.3',
133 'title' => 'Fatal Error Handler',
134 'is_domain' => 1,
135 'is_contact' => 0,
136 'description' => "Enter the path and class for a custom PHP error-handling function if you want to override built-in CiviCRM error handling for your site.",
137 ],
138 ];