(dev/core#217) PrevNext - Add settings for admin to choose backend
[civicrm-core.git] / settings / Developer.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
fee14197 4 | CiviCRM version 5 |
6a488035 5 +--------------------------------------------------------------------+
4a99ac35 6 | Copyright CiviCRM LLC (c) 2004-2017 |
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
4a99ac35 31 * @copyright CiviCRM LLC (c) 2004-2017
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
38
39return array(
e7b8261d
TO
40 'assetCache' => array(
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' => array(
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' => array(
58 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
59 ),
60 ),
0b2bdd13 61 'userFrameworkLogging' => array(
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)",
6a488035 74 ),
0b2bdd13 75 'debug_enabled' => array(
6a488035
TO
76 'group_name' => 'Developer Preferences',
77 'group' => 'developer',
0b2bdd13
J
78 'name' => 'debug_enabled',
79 'config_key' => 'debug', // we can't call the setting debug as that has other meanings in api
6a488035
TO
80 'type' => 'Boolean',
81 'quick_form_type' => 'YesNo',
82 'default' => '0',
83 'add' => '4.3',
0b2bdd13 84 'title' => 'Enable Debugging',
6a488035
TO
85 'is_domain' => 1,
86 'is_contact' => 0,
0b2bdd13 87 '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 88 'help_text' => 'Do not turn this on on production sites',
6a488035
TO
89 ),
90 'backtrace' => array(
91 'group_name' => 'Developer Preferences',
92 'group' => 'developer',
93 'name' => 'backtrace',
6a488035
TO
94 'type' => 'Boolean',
95 'quick_form_type' => 'YesNo',
96 'default' => '0',
97 'add' => '4.3',
98 'title' => 'Display Backtrace',
99 'is_domain' => 1,
100 'is_contact' => 0,
101 '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",
6a488035 102 ),
f008885c
E
103 'environment' => array(
104 'group_name' => 'Developer Preferences',
105 'group' => 'developer',
106 'name' => 'environment',
107 'type' => 'String',
108 'html_type' => 'Select',
109 'quick_form_type' => 'Select',
110 'default' => 'Production',
111 'pseudoconstant' => array(
112 'optionGroupName' => 'environment',
113 ),
114 'add' => '4.7',
115 'title' => 'Environment',
116 'is_domain' => 1,
117 'is_contact' => 0,
118 'description' => "Setting to define the environment in which this CiviCRM instance is running.",
03c5ceba 119 'on_change' => array(
120 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
121 ),
f008885c 122 ),
6a488035
TO
123 'fatalErrorHandler' => array(
124 'group_name' => 'Developer Preferences',
125 'group' => 'developer',
126 'name' => 'fatalErrorHandler',
6a488035 127 'type' => 'String',
fd0e547b
EM
128 'quick_form_type' => 'Element',
129 'html_type' => 'text',
08e57c58 130 'default' => NULL,
6a488035
TO
131 'add' => '4.3',
132 'title' => 'Fatal Error Handler',
133 'is_domain' => 1,
134 'is_contact' => 0,
135 '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.",
6a488035 136 ),
232624b1 137);