Merge pull request #15958 from civicrm/5.20
[civicrm-core.git] / settings / Developer.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 * $Id$
17 *
18 */
19/*
20 * Settings metadata file
21 */
22
dfe1f88a
CW
23return [
24 'assetCache' => [
e7b8261d
TO
25 'group_name' => 'Developer Preferences',
26 'group' => 'developer',
27 'name' => 'assetCache',
28 'type' => 'String',
29 'quick_form_type' => 'Select',
30 'html_type' => 'Select',
dfe1f88a 31 'html_attributes' => [
e7b8261d 32 //'class' => 'crm-select2',
dfe1f88a 33 ],
e7b8261d
TO
34 'default' => 'auto',
35 'add' => '4.7',
36 'title' => 'Asset Caching',
37 'is_domain' => 1,
38 'is_contact' => 0,
39 'description' => 'Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)',
40 'help_text' => NULL,
dfe1f88a 41 'pseudoconstant' => [
e7b8261d 42 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
dfe1f88a
CW
43 ],
44 ],
45 'userFrameworkLogging' => [
6a488035
TO
46 'group_name' => 'Developer Preferences',
47 'group' => 'developer',
0b2bdd13 48 'name' => 'userFrameworkLogging',
6a488035
TO
49 'type' => 'Boolean',
50 'quick_form_type' => 'YesNo',
51 'default' => '0',
52 'add' => '4.3',
0b2bdd13 53 'title' => 'Enable Drupal Watchdog Logging',
6a488035
TO
54 'is_domain' => 1,
55 'is_contact' => 0,
0b2bdd13 56 'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
0b2bdd13 57 '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
58 ],
59 'debug_enabled' => [
6a488035
TO
60 'group_name' => 'Developer Preferences',
61 'group' => 'developer',
0b2bdd13 62 'name' => 'debug_enabled',
7a807364
SL
63 // we can't call the setting debug as that has other meanings in api
64 'config_key' => 'debug',
6a488035
TO
65 'type' => 'Boolean',
66 'quick_form_type' => 'YesNo',
67 'default' => '0',
68 'add' => '4.3',
0b2bdd13 69 'title' => 'Enable Debugging',
6a488035
TO
70 'is_domain' => 1,
71 'is_contact' => 0,
0b2bdd13 72 '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 73 'help_text' => 'Do not turn this on on production sites',
dfe1f88a
CW
74 ],
75 'backtrace' => [
6a488035
TO
76 'group_name' => 'Developer Preferences',
77 'group' => 'developer',
78 'name' => 'backtrace',
6a488035
TO
79 'type' => 'Boolean',
80 'quick_form_type' => 'YesNo',
81 'default' => '0',
82 'add' => '4.3',
83 'title' => 'Display Backtrace',
84 'is_domain' => 1,
85 'is_contact' => 0,
86 '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
87 ],
88 'environment' => [
f008885c
E
89 'group_name' => 'Developer Preferences',
90 'group' => 'developer',
91 'name' => 'environment',
92 'type' => 'String',
93 'html_type' => 'Select',
94 'quick_form_type' => 'Select',
95 'default' => 'Production',
dfe1f88a 96 'pseudoconstant' => [
f008885c 97 'optionGroupName' => 'environment',
dfe1f88a 98 ],
f008885c
E
99 'add' => '4.7',
100 'title' => 'Environment',
101 'is_domain' => 1,
102 'is_contact' => 0,
103 'description' => "Setting to define the environment in which this CiviCRM instance is running.",
dfe1f88a 104 'on_change' => [
03c5ceba 105 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
dfe1f88a
CW
106 ],
107 ],
108 'fatalErrorHandler' => [
6a488035
TO
109 'group_name' => 'Developer Preferences',
110 'group' => 'developer',
111 'name' => 'fatalErrorHandler',
6a488035 112 'type' => 'String',
fd0e547b
EM
113 'quick_form_type' => 'Element',
114 'html_type' => 'text',
08e57c58 115 'default' => NULL,
6a488035
TO
116 'add' => '4.3',
117 'title' => 'Fatal Error Handler',
118 'is_domain' => 1,
119 'is_contact' => 0,
120 '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
121 ],
122];