Merge pull request #6159 from yashodha/CRM-16735.fix
[civicrm-core.git] / settings / Developer.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
39de6fd5 4 | CiviCRM version 4.6 |
6a488035 5 +--------------------------------------------------------------------+
e7112fa7 6 | Copyright CiviCRM LLC (c) 2004-2015 |
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
e7112fa7 31 * @copyright CiviCRM LLC (c) 2004-2015
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
38
39return array(
0b2bdd13 40 'userFrameworkLogging' => array(
6a488035
TO
41 'group_name' => 'Developer Preferences',
42 'group' => 'developer',
0b2bdd13 43 'name' => 'userFrameworkLogging',
6a488035
TO
44 'type' => 'Boolean',
45 'quick_form_type' => 'YesNo',
46 'default' => '0',
47 'add' => '4.3',
0b2bdd13 48 'title' => 'Enable Drupal Watchdog Logging',
6a488035
TO
49 'is_domain' => 1,
50 'is_contact' => 0,
0b2bdd13 51 'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
6a488035 52 'prefetch' => 1,
0b2bdd13 53 '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 54 ),
0b2bdd13 55 'debug_enabled' => array(
6a488035
TO
56 'group_name' => 'Developer Preferences',
57 'group' => 'developer',
0b2bdd13
J
58 'name' => 'debug_enabled',
59 'config_key' => 'debug', // we can't call the setting debug as that has other meanings in api
6a488035
TO
60 'type' => 'Boolean',
61 'quick_form_type' => 'YesNo',
62 'default' => '0',
63 'add' => '4.3',
0b2bdd13 64 'title' => 'Enable Debugging',
6a488035
TO
65 'is_domain' => 1,
66 'is_contact' => 0,
0b2bdd13 67 '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",
6a488035 68 'prefetch' => 1,
0b2bdd13 69 'help_text' => 'Do not turn this on on production sites',
6a488035
TO
70 ),
71 'backtrace' => array(
72 'group_name' => 'Developer Preferences',
73 'group' => 'developer',
74 'name' => 'backtrace',
6a488035
TO
75 'type' => 'Boolean',
76 'quick_form_type' => 'YesNo',
77 'default' => '0',
78 'add' => '4.3',
79 'title' => 'Display Backtrace',
80 'is_domain' => 1,
81 'is_contact' => 0,
82 '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",
83 'prefetch' => 1,
84 ),
85 'fatalErrorTemplate' => array(
86 'group_name' => 'Developer Preferences',
87 'group' => 'developer',
88 'name' => 'fatalErrorTemplate',
6a488035 89 'type' => 'String',
fd0e547b
EM
90 'quick_form_type' => 'Element',
91 'html_type' => 'text',
6a488035
TO
92 'default' => 'CRM/common/fatal.tpl',
93 'add' => '4.3',
94 'title' => 'Fatal Error Template',
95 'is_domain' => 1,
96 'is_contact' => 0,
97 'description' => "Enter the path and filename for a custom Smarty template if you want to define your own screen for displaying fatal errors.",
98 'prefetch' => 1,
99 ),
100 'fatalErrorHandler' => array(
101 'group_name' => 'Developer Preferences',
102 'group' => 'developer',
103 'name' => 'fatalErrorHandler',
6a488035 104 'type' => 'String',
fd0e547b
EM
105 'quick_form_type' => 'Element',
106 'html_type' => 'text',
08e57c58 107 'default' => NULL,
6a488035
TO
108 'add' => '4.3',
109 'title' => 'Fatal Error Handler',
110 'is_domain' => 1,
111 'is_contact' => 0,
112 '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.",
113 'prefetch' => 1,
114 ),
232624b1 115);