Merge pull request #15973 from kcristiano/5.20-msg-tpl
[civicrm-core.git] / settings / Developer.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
fee14197 4 | CiviCRM version 5 |
6a488035 5 +--------------------------------------------------------------------+
6b83d5bd 6 | Copyright CiviCRM LLC (c) 2004-2019 |
6a488035
TO
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 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
6b83d5bd 31 * @copyright CiviCRM LLC (c) 2004-2019
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
38
dfe1f88a
CW
39return [
40 'assetCache' => [
e7b8261d
TO
41 'group_name' => 'Developer Preferences',
42 'group' => 'developer',
43 'name' => 'assetCache',
44 'type' => 'String',
45 'quick_form_type' => 'Select',
46 'html_type' => 'Select',
dfe1f88a 47 'html_attributes' => [
e7b8261d 48 //'class' => 'crm-select2',
dfe1f88a 49 ],
e7b8261d
TO
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,
dfe1f88a 57 'pseudoconstant' => [
e7b8261d 58 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
dfe1f88a
CW
59 ],
60 ],
61 'userFrameworkLogging' => [
6a488035
TO
62 'group_name' => 'Developer Preferences',
63 'group' => 'developer',
0b2bdd13 64 'name' => 'userFrameworkLogging',
6a488035
TO
65 'type' => 'Boolean',
66 'quick_form_type' => 'YesNo',
67 'default' => '0',
68 'add' => '4.3',
0b2bdd13 69 'title' => 'Enable Drupal Watchdog Logging',
6a488035
TO
70 'is_domain' => 1,
71 'is_contact' => 0,
0b2bdd13 72 'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
0b2bdd13 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)",
dfe1f88a
CW
74 ],
75 'debug_enabled' => [
6a488035
TO
76 'group_name' => 'Developer Preferences',
77 'group' => 'developer',
0b2bdd13 78 'name' => 'debug_enabled',
7a807364
SL
79 // we can't call the setting debug as that has other meanings in api
80 'config_key' => 'debug',
6a488035
TO
81 'type' => 'Boolean',
82 'quick_form_type' => 'YesNo',
83 'default' => '0',
84 'add' => '4.3',
0b2bdd13 85 'title' => 'Enable Debugging',
6a488035
TO
86 'is_domain' => 1,
87 'is_contact' => 0,
0b2bdd13 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",
0b2bdd13 89 'help_text' => 'Do not turn this on on production sites',
dfe1f88a
CW
90 ],
91 'backtrace' => [
6a488035
TO
92 'group_name' => 'Developer Preferences',
93 'group' => 'developer',
94 'name' => 'backtrace',
6a488035
TO
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",
dfe1f88a
CW
103 ],
104 'environment' => [
f008885c
E
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',
dfe1f88a 112 'pseudoconstant' => [
f008885c 113 'optionGroupName' => 'environment',
dfe1f88a 114 ],
f008885c
E
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.",
dfe1f88a 120 'on_change' => [
03c5ceba 121 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
dfe1f88a
CW
122 ],
123 ],
124 'fatalErrorHandler' => [
6a488035
TO
125 'group_name' => 'Developer Preferences',
126 'group' => 'developer',
127 'name' => 'fatalErrorHandler',
6a488035 128 'type' => 'String',
fd0e547b
EM
129 'quick_form_type' => 'Element',
130 'html_type' => 'text',
08e57c58 131 'default' => NULL,
6a488035
TO
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.",
dfe1f88a
CW
137 ],
138];