Merge pull request #13039 from colemanw/quicksearchSetting
[civicrm-core.git] / settings / Core.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 32 */
1bfe4abf
CB
33
34/**
6a488035
TO
35 * Settings metadata file
36 */
08e57c58 37return array(
6a488035
TO
38 'contact_view_options' => array(
39 'group_name' => 'CiviCRM Preferences',
40 'group' => 'core',
41 'name' => 'contact_view_options',
42 'type' => 'String',
a55c9b35 43 'quick_form_type' => 'CheckBoxes',
6a488035
TO
44 'html_type' => 'checkboxes',
45 'pseudoconstant' => array(
46 'optionGroupName' => 'contact_view_options',
47 ),
48 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 113\ 1',
49 'add' => '4.1',
a55c9b35 50 'title' => ts('Viewing Contacts'),
6a488035
TO
51 'is_domain' => '1',
52 'is_contact' => 0,
a55c9b35 53 'description' => ts("Select the tabs that should be displayed when viewing a contact record. EXAMPLE: If your organization does not keep track of 'Relationships', then un-check this option to simplify the screen display. Tabs for Contributions, Pledges, Memberships, Events, Grants and Cases are also hidden if the corresponding component is not enabled. Go to Administer > System Settings > Enable Components to modify the components which are available for your site."),
08e57c58 54 'help_text' => NULL,
6821aa1d 55 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
6a488035 56 ),
6a488035
TO
57 'contact_edit_options' => array(
58 'group_name' => 'CiviCRM Preferences',
59 'group' => 'core',
60 'name' => 'contact_edit_options',
61 'type' => 'String',
62 'html_type' => 'checkboxes',
63 'pseudoconstant' => array(
64 'optionGroupName' => 'contact_edit_options',
65 ),
007e3bdc 66 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 111\ 112\ 114\ 115\ 116\ 117\ 1',
6a488035 67 'add' => '4.1',
629c8513 68 'title' => ts('Editing Contacts'),
6a488035
TO
69 'is_domain' => 1,
70 'is_contact' => 0,
629c8513 71 'description' => ts('Select the sections that should be included when adding or editing a contact record. EXAMPLE: If your organization does not record Gender and Birth Date for individuals, then simplify the form by un-checking this option. Drag interface allows you to change the order of the panes displayed on contact add/edit screen.'),
56fdfc52 72 'help_text' => NULL,
629c8513 73 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
6a488035
TO
74 ),
75 'advanced_search_options' => array(
76 'group_name' => 'CiviCRM Preferences',
629c8513 77 'group' => 'core',
6a488035
TO
78 'name' => 'advanced_search_options',
79 'type' => 'String',
80 'html_type' => 'checkboxes',
81 'pseudoconstant' => array(
82 'optionGroupName' => 'advanced_search_options',
83 ),
007e3bdc 84 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 112\ 113\ 115\ 116\ 117\ 118\ 119\ 1',
6a488035 85 'add' => '4.1',
629c8513 86 'title' => ts('Contact Search'),
6a488035
TO
87 'is_domain' => 1,
88 'is_contact' => 0,
629c8513 89 'description' => ts('Select the sections that should be included in the Basic and Advanced Search forms. EXAMPLE: If you don\'t track Relationships - then you do not need this section included in the advanced search form. Simplify the form by un-checking this option.'),
2e94f477 90 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
6a488035 91 ),
56fdfc52 92 'user_dashboard_options' => array(
6a488035
TO
93 'group_name' => 'CiviCRM Preferences',
94 'group' => 'core',
95 'name' => 'user_dashboard_options',
96 'type' => 'String',
97 'html_type' => 'checkboxes',
98 'pseudoconstant' => array(
99 'optionGroupName' => 'user_dashboard_options',
56fdfc52 100 ),
007e3bdc 101 'default' => '\ 11\ 12\ 13\ 14\ 15\ 17\ 18\ 1',
6a488035 102 'add' => '4.1',
732b1d05 103 'title' => ts('Contact Dashboard'),
6a488035
TO
104 'is_domain' => 1,
105 'is_contact' => 0,
94b60b64 106 'description' => ts('Select the sections that should be included in the Contact Dashboard. EXAMPLE: If you don\'t want constituents to view their own contribution history, un-check that option.'),
56fdfc52 107 'help_text' => NULL,
94b60b64 108 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
6a488035
TO
109 ),
110 'address_options' => array(
111 'group_name' => 'CiviCRM Preferences',
112 'group' => 'core',
113 'name' => 'address_options',
114 'type' => 'String',
c7cd4e2c 115 'html_type' => 'checkboxes',
6a488035
TO
116 'pseudoconstant' => array(
117 'optionGroupName' => 'address_options',
118 ),
007e3bdc 119 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 18\ 19\ 110\ 111\ 1',
6a488035 120 'add' => '4.1',
c7cd4e2c 121 'title' => ts('Address Fields'),
6a488035
TO
122 'is_domain' => 1,
123 'is_contact' => 0,
08e57c58
TO
124 'description' => NULL,
125 'help_text' => NULL,
c7cd4e2c 126 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
6a488035
TO
127 ),
128 'address_format' => array(
129 'group_name' => 'CiviCRM Preferences',
130 'group' => 'core',
131 'name' => 'address_format',
132 'type' => 'String',
c7cd4e2c 133 'html_type' => 'textarea',
207f62c6 134 'default' => "{contact.address_name}\n{contact.street_address}\n{contact.supplemental_address_1}\n{contact.supplemental_address_2}\n{contact.supplemental_address_3}\n{contact.city}{, }{contact.state_province}{ }{contact.postal_code}\n{contact.country}",
6a488035 135 'add' => '4.1',
c7cd4e2c 136 'title' => ts('Address Display Format'),
6a488035
TO
137 'is_domain' => 1,
138 'is_contact' => 0,
08e57c58 139 'description' => NULL,
56fdfc52 140 'help_text' => NULL,
6a488035
TO
141 ),
142 'mailing_format' => array(
143 'group_name' => 'CiviCRM Preferences',
144 'group' => 'core',
145 'name' => 'mailing_format',
146 'type' => 'String',
c7cd4e2c 147 'html_type' => 'textarea',
207f62c6 148 'default' => "{contact.addressee}\n{contact.street_address}\n{contact.supplemental_address_1}\n{contact.supplemental_address_2}\n{contact.supplemental_address_3}\n{contact.city}{, }{contact.state_province}{ }{contact.postal_code}\n{contact.country}",
6a488035 149 'add' => '4.1',
c7cd4e2c 150 'title' => ts('Mailing Label Format'),
6a488035
TO
151 'is_domain' => 1,
152 'is_contact' => 0,
08e57c58 153 'description' => NULL,
56fdfc52 154 'help_text' => NULL,
6a488035
TO
155 ),
156 'display_name_format' => array(
157 'group_name' => 'CiviCRM Preferences',
158 'group' => 'core',
159 'name' => 'display_name_format',
160 'type' => 'String',
7399a0a6 161 'html_type' => 'textarea',
6a488035
TO
162 'default' => '{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}',
163 'add' => '4.1',
732b1d05 164 'title' => ts('Individual Display Name Format'),
6a488035
TO
165 'is_domain' => 1,
166 'is_contact' => 0,
7399a0a6 167 'description' => ts('Display name format for individual contact display names.'),
6a488035
TO
168 ),
169 'sort_name_format' => array(
170 'group_name' => 'CiviCRM Preferences',
171 'group' => 'core',
172 'name' => 'sort_name_format',
173 'type' => 'String',
7399a0a6 174 'html_type' => 'textarea',
6a488035
TO
175 'default' => '{contact.last_name}{, }{contact.first_name}',
176 'add' => '4.1',
732b1d05 177 'title' => ts('Individual Sort Name Format'),
6a488035
TO
178 'is_domain' => 1,
179 'is_contact' => 0,
7399a0a6 180 'description' => ts('Sort name format for individual contact display names.'),
6a488035 181 ),
e8a64b98 182 'remote_profile_submissions' => array(
61f53f0d
PN
183 'group_name' => 'CiviCRM Preferences',
184 'group' => 'core',
e8a64b98 185 'name' => 'remote_profile_submissions',
61f53f0d
PN
186 'type' => 'Boolean',
187 'quick_form_type' => 'YesNo',
188 'default' => FALSE,
189 'html_type' => 'radio',
190 'add' => '4.7',
1bfe4abf 191 'title' => 'Accept profile submissions from external sites',
61f53f0d
PN
192 'is_domain' => 1,
193 'is_contact' => 0,
732b1d05 194 'description' => ts('If enabled, CiviCRM will permit submissions from external sites to profiles. This is disabled by default to limit abuse.'),
61f53f0d
PN
195 'help_text' => NULL,
196 ),
d19abfd1
AP
197 'allow_alert_autodismissal' => array(
198 'group_name' => 'CiviCRM Preferences',
199 'group' => 'core',
200 'name' => 'allow_alert_autodismissal',
201 'type' => 'Boolean',
202 'quick_form_type' => 'YesNo',
203 'default' => TRUE,
204 'html_type' => 'radio',
205 'add' => '4.7',
206 'title' => 'Allow alerts to auto-dismiss?',
207 'is_domain' => 1,
208 'is_contact' => 0,
732b1d05 209 'description' => ts('If disabled, CiviCRM will not automatically dismiss any alerts after 10 seconds.'),
d19abfd1
AP
210 'help_text' => NULL,
211 ),
6a488035
TO
212 'editor_id' => array(
213 'group_name' => 'CiviCRM Preferences',
214 'group' => 'core',
215 'name' => 'editor_id',
216 'type' => 'String',
719eda4a 217 'html_type' => 'select',
72f03b4f 218 'default' => 'CKEditor',
6a488035 219 'add' => '4.1',
732b1d05 220 'title' => ts('Wysiwig Editor'),
719eda4a 221 'pseudoconstant' => array(
222 'optionGroupName' => 'wysiwyg_editor',
223 ),
6a488035
TO
224 'is_domain' => 1,
225 'is_contact' => 0,
08e57c58
TO
226 'description' => NULL,
227 'help_text' => NULL,
6a488035
TO
228 ),
229 'contact_ajax_check_similar' => array(
230 'group_name' => 'CiviCRM Preferences',
231 'group' => 'core',
232 'name' => 'contact_ajax_check_similar',
233 'type' => 'String',
d6def514 234 'html_type' => 'radio',
007e3bdc 235 'default' => '1',
6a488035 236 'add' => '4.1',
732b1d05 237 'title' => ts('Check for Similar Contacts'),
6a488035
TO
238 'is_domain' => 1,
239 'is_contact' => 0,
08e57c58
TO
240 'description' => NULL,
241 'help_text' => NULL,
719eda4a 242 'options' => ['1' => ts('While Typing'), '0' => ts('When Saving'), '2' => ts('Never')],
f1cf499b 243 ),
53f2643c 244 'ajaxPopupsEnabled' => array(
f1cf499b
CW
245 'group_name' => 'CiviCRM Preferences',
246 'group' => 'core',
53f2643c 247 'name' => 'ajaxPopupsEnabled',
f1cf499b 248 'type' => 'Boolean',
74f89a9f 249 'html_type' => 'checkbox',
f1cf499b
CW
250 'default' => 1,
251 'add' => '4.5',
732b1d05 252 'title' => ts('Enable Popup Forms'),
f1cf499b
CW
253 'is_domain' => 1,
254 'is_contact' => 0,
08e57c58
TO
255 'description' => NULL,
256 'help_text' => NULL,
6a488035
TO
257 ),
258 'activity_assignee_notification' => array(
259 'group_name' => 'CiviCRM Preferences',
260 'group' => 'core',
261 'name' => 'activity_assignee_notification',
74f89a9f 262 'type' => 'Boolean',
263 'html_type' => 'checkbox',
007e3bdc 264 'default' => '1',
6a488035 265 'add' => '4.1',
732b1d05 266 'title' => ts('Notify Activity Assignees'),
6a488035
TO
267 'is_domain' => 1,
268 'is_contact' => 0,
08e57c58 269 'description' => NULL,
56fdfc52 270 'help_text' => NULL,
6a488035
TO
271 ),
272 'activity_assignee_notification_ics' => array(
273 'group_name' => 'CiviCRM Preferences',
274 'group' => 'core',
275 'name' => 'activity_assignee_notification_ics',
74f89a9f 276 'type' => 'Boolean',
277 'html_type' => 'checkbox',
007e3bdc 278 'default' => '0',
6a488035 279 'add' => '4.3',
732b1d05 280 'title' => ts('Include ICal Invite to Activity Assignees'),
6a488035
TO
281 'is_domain' => 1,
282 'is_contact' => 0,
08e57c58 283 'description' => NULL,
56fdfc52 284 'help_text' => NULL,
6a488035
TO
285 ),
286 'contact_autocomplete_options' => array(
287 'group_name' => 'CiviCRM Preferences',
288 'group' => 'core',
289 'name' => 'contact_autocomplete_options',
290 'type' => 'String',
d434f797 291 'quick_form_type' => 'CheckBox',
77d87f6e 292 'pseudoconstant' => array(
d434f797 293 'callback' => 'CRM_Admin_Form_Setting_Search::getContactAutocompleteOptions',
77d87f6e 294 ),
d434f797 295 'default' => '\ 11\ 12\ 1',
6a488035 296 'add' => '4.1',
732b1d05 297 'title' => ts('Autocomplete Contact Search'),
6a488035
TO
298 'is_domain' => 1,
299 'is_contact' => 0,
732b1d05 300 'description' => ts("Selected fields will be displayed in back-office autocomplete dropdown search results (Quick Search, etc.). Contact Name is always included."),
56fdfc52 301 'help_text' => NULL,
6a488035
TO
302 ),
303 'contact_reference_options' => array(
304 'group_name' => 'CiviCRM Preferences',
305 'group' => 'core',
306 'name' => 'contact_reference_options',
307 'type' => 'String',
d434f797 308 'quick_form_type' => 'CheckBox',
6a488035 309 'pseudoconstant' => array(
d434f797 310 'callback' => 'CRM_Admin_Form_Setting_Search::getContactReferenceOptions',
6a488035 311 ),
d434f797 312 'default' => '\ 11\ 12\ 1',
6a488035 313 'add' => '4.1',
732b1d05 314 'title' => ts('Contact Reference Options'),
6a488035
TO
315 'is_domain' => 1,
316 'is_contact' => 0,
732b1d05 317 'description' => ts("Selected fields will be displayed in autocomplete dropdown search results for 'Contact Reference' custom fields. Contact Name is always included. NOTE: You must assign 'access contact reference fields' permission to the anonymous role if you want to use custom contact reference fields in profiles on public pages. For most situations, you should use the 'Limit List to Group' setting when configuring a contact reference field which will be used in public forms to prevent exposing your entire contact list."),
56fdfc52 318 'help_text' => NULL,
6a488035 319 ),
007e3bdc
TO
320 'contact_smart_group_display' => array(
321 'group_name' => 'CiviCRM Preferences',
322 'group' => 'core',
323 'name' => 'contact_smart_group_display',
324 'type' => 'String',
325 'html_type' => 'radio',
326 'default' => '1',
327 'add' => '4.7',
328 'title' => ts('Viewing Smart Groups'),
329 'is_domain' => 1,
330 'is_contact' => 0,
c5af8245 331 'description' => ts('Controls display of the smart groups that a contact is part of in each contact\'s "Groups" tab. "Show on Demand" provides the best performance, and is recommended for most sites.'),
007e3bdc 332 'help_text' => NULL,
c5af8245 333 'pseudoconstant' => array(
334 'optionGroupName' => 'contact_smart_group_display',
335 ),
007e3bdc 336 ),
801bafd7 337 'smart_group_cache_refresh_mode' => array(
338 'group_name' => 'CiviCRM Preferences',
339 'group' => 'core',
340 'name' => 'smart_group_cache_refresh_mode',
341 'type' => 'String',
342 'html_type' => 'radio',
343 'default' => 'opportunistic',
344 'add' => '4.7',
732b1d05 345 'title' => ts('Smart Group Refresh Mode'),
801bafd7 346 'is_domain' => 1,
347 'is_contact' => 0,
348 'pseudoconstant' => array(
a8eb1fe6 349 'callback' => 'CRM_Contact_BAO_GroupContactCache::getModes',
801bafd7 350 ),
732b1d05 351 'description' => ts('Should the smart groups be by cron jobs or user actions'),
352 'help_text' => ts('In "Opportunistic Flush" mode, caches are flushed in response to user actions; this mode is broadly compatible but may add latency during form-submissions. In "Cron Flush" mode, you should schedule a cron job to flush caches; this can improve latency on form-submissions but requires more setup.'),
801bafd7 353 ),
801c5335
C
354 'installed' => array(
355 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
356 'group_name' => 'CiviCRM Preferences',
357 'group' => 'core',
358 'name' => 'installed',
359 'type' => 'Boolean',
360 'quick_form_type' => 'YesNo',
361 'default' => FALSE,
362 'add' => '4.7',
732b1d05 363 'title' => ts('System Installed'),
801c5335
C
364 'is_domain' => 1,
365 'is_contact' => 0,
732b1d05 366 'description' => ts('A flag indicating whether this system has run a post-installation routine'),
801c5335
C
367 'help_text' => NULL,
368 ),
6a488035
TO
369 'max_attachments' => array(
370 'group_name' => 'CiviCRM Preferences',
371 'group' => 'core',
372 'name' => 'max_attachments',
373 'legacy_key' => 'maxAttachments',
6a488035
TO
374 'type' => 'Integer',
375 'quick_form_type' => 'Element',
376 'html_type' => 'text',
377 'html_attributes' => array(
378 'size' => 2,
379 'maxlength' => 8,
56fdfc52
TO
380 ),
381 'default' => 3,
382 'add' => '4.3',
732b1d05 383 'title' => ts('Maximum Attachments'),
56fdfc52
TO
384 'is_domain' => 1,
385 'is_contact' => 0,
732b1d05 386 'description' => ts('Maximum number of files (documents, images, etc.) which can be attached to emails or activities.'),
56fdfc52 387 'help_text' => NULL,
6a488035
TO
388 ),
389 'maxFileSize' => array(
390 'group_name' => 'CiviCRM Preferences',
391 'group' => 'core',
392 'name' => 'maxFileSize',
6a488035
TO
393 'type' => 'Integer',
394 'quick_form_type' => 'Element',
395 'html_type' => 'text',
396 'html_attributes' => array(
397 'size' => 2,
398 'maxlength' => 8,
399 ),
400 'default' => 3,
401 'add' => '4.3',
732b1d05 402 'title' => ts('Maximum File Size (in MB)'),
6a488035
TO
403 'is_domain' => 1,
404 'is_contact' => 0,
732b1d05 405 'description' => ts('Maximum Size of file (documents, images, etc.) which can be attached to emails or activities.<br />Note: php.ini should support this file size.'),
08e57c58 406 'help_text' => NULL,
6a488035
TO
407 ),
408 'contact_undelete' => array(
409 'group_name' => 'CiviCRM Preferences',
410 'group' => 'core',
411 'name' => 'contact_undelete',
412 'type' => 'Boolean',
413 'quick_form_type' => 'YesNo',
414 'default' => 1,
415 'add' => '4.3',
732b1d05 416 'title' => ts('Contact Trash and Undelete'),
6a488035
TO
417 'is_domain' => 1,
418 'is_contact' => 0,
732b1d05 419 'description' => ts('If enabled, deleted contacts will be moved to trash (instead of being destroyed). Users with the proper permission are able to search for the deleted contacts and restore them (or delete permanently).'),
08e57c58 420 'help_text' => NULL,
6a488035 421 ),
f182074e
PN
422 'allowPermDeleteFinancial' => array(
423 'group_name' => 'CiviCRM Preferences',
424 'group' => 'core',
425 'name' => 'allowPermDeleteFinancial',
426 'type' => 'Boolean',
427 'quick_form_type' => 'YesNo',
428 'default' => FALSE,
429 'add' => '4.3',
732b1d05 430 'title' => ts('Contact Permanent Delete'),
f182074e
PN
431 'is_domain' => 1,
432 'is_contact' => 0,
732b1d05 433 'description' => ts('Allow Permanent Delete for contacts who are linked to live financial transactions'),
08e57c58 434 'help_text' => NULL,
f182074e 435 ),
439a9f1b
TO
436 'securityAlert' => array(
437 'group_name' => 'CiviCRM Preferences',
438 'group' => 'core',
fa8dc18c 439 'name' => 'securityAlert',
439a9f1b
TO
440 'type' => 'Boolean',
441 'quick_form_type' => 'YesNo',
442 'default' => 1,
443 'add' => '4.4',
732b1d05 444 'title' => ts('Status Alerts'),
439a9f1b
TO
445 'is_domain' => 1,
446 'is_contact' => 0,
732b1d05 447 'description' => ts("If enabled, CiviCRM will display pop-up notifications (no more than once per day) for security and misconfiguration issues identified in the system check."),
08e57c58 448 'help_text' => NULL,
439a9f1b 449 ),
6a488035
TO
450 'doNotAttachPDFReceipt' => array(
451 'group_name' => 'CiviCRM Preferences',
452 'group' => 'core',
453 'name' => 'doNotAttachPDFReceipt',
6a488035
TO
454 'type' => 'Boolean',
455 'quick_form_type' => 'YesNo',
f825dba2 456 'default' => 0,
6a488035 457 'add' => '4.3',
732b1d05 458 'title' => ts('Attach PDF copy to receipts'),
6a488035
TO
459 'is_domain' => 1,
460 'is_contact' => 0,
732b1d05 461 'description' => ts("If enabled, CiviCRM sends PDF receipt as an attachment during event signup or online contribution."),
08e57c58 462 'help_text' => NULL,
6a488035 463 ),
cc144465
TO
464 'recordGeneratedLetters' => array(
465 'group_name' => 'CiviCRM Preferences',
466 'group' => 'core',
467 'name' => 'recordGeneratedLetters',
468 'type' => 'String',
469 'quick_form_type' => 'Select',
470 'html_type' => 'Select',
471 'html_attributes' => array(
472 'class' => 'crm-select2',
473 ),
474 'default' => 'multiple',
3ff77806 475 'add' => '4.7',
732b1d05 476 'title' => ts('Record generated letters'),
cc144465
TO
477 'is_domain' => 1,
478 'is_contact' => 0,
732b1d05 479 'description' => ts('When generating a letter (PDF/Word) via mail-merge, how should the letter be recorded?'),
cc144465
TO
480 'help_text' => NULL,
481 'pseudoconstant' => array(
482 'callback' => 'CRM_Contact_Form_Task_PDFLetterCommon::getLoggingOptions',
483 ),
484 ),
6a488035
TO
485 'wkhtmltopdfPath' => array(
486 'group_name' => 'CiviCRM Preferences',
487 'group' => 'core',
488 'name' => 'wkhtmltopdfPath',
6a488035
TO
489 'type' => 'String',
490 'quick_form_type' => 'Element',
6a488035
TO
491 'html_attributes' => array(
492 'size' => 64,
493 'maxlength' => 256,
494 ),
c1a2145a 495 'html_type' => 'text',
08e57c58 496 'default' => NULL,
6a488035 497 'add' => '4.3',
732b1d05 498 'title' => ts('Path to wkhtmltopdf executable'),
6a488035
TO
499 'is_domain' => 1,
500 'is_contact' => 0,
08e57c58
TO
501 'description' => NULL,
502 'help_text' => NULL,
6a488035 503 ),
53b0f6c3
TO
504 'recaptchaOptions' => array(
505 'group_name' => 'CiviCRM Preferences',
506 'group' => 'core',
507 'name' => 'recaptchaOptions',
53b0f6c3
TO
508 'type' => 'String',
509 'quick_form_type' => 'Element',
510 'html_attributes' => array(
511 'size' => 64,
512 'maxlength' => 64,
513 ),
c1a2145a 514 'html_type' => 'text',
53b0f6c3
TO
515 'default' => NULL,
516 'add' => '4.3',
732b1d05 517 'title' => ts('Recaptcha Options'),
53b0f6c3
TO
518 'is_domain' => 1,
519 'is_contact' => 0,
732b1d05 520 'description' => ts('You can specify the reCAPTCHA theme options as comma separated data.(eg: theme:\'blackglass\', lang : \'fr\' ). Check the available options at <a href="https://developers.google.com/recaptcha/docs/display#config">Customizing the Look and Feel of reCAPTCHA</a>.'),
53b0f6c3
TO
521 'help_text' => NULL,
522 ),
6a488035
TO
523 'recaptchaPublicKey' => array(
524 'group_name' => 'CiviCRM Preferences',
525 'group' => 'core',
526 'name' => 'recaptchaPublicKey',
6a488035
TO
527 'type' => 'String',
528 'quick_form_type' => 'Element',
6a488035
TO
529 'html_attributes' => array(
530 'size' => 64,
531 'maxlength' => 64,
532 ),
c1a2145a 533 'html_type' => 'text',
08e57c58 534 'default' => NULL,
6a488035 535 'add' => '4.3',
732b1d05 536 'title' => ts('Recaptcha Site Key'),
6a488035
TO
537 'is_domain' => 1,
538 'is_contact' => 0,
08e57c58
TO
539 'description' => NULL,
540 'help_text' => NULL,
6a488035 541 ),
ce287b85
AP
542 'forceRecaptcha' => array(
543 'add' => '4.7',
544 'help_text' => NULL,
545 'is_domain' => 1,
546 'is_contact' => 0,
547 'group_name' => 'CiviCRM Preferences',
548 'group' => 'core',
549 'name' => 'forceRecaptcha',
550 'type' => 'Boolean',
551 'quick_form_type' => 'YesNo',
552 'html_type' => '',
553 'default' => '0',
732b1d05 554 'title' => ts('Force reCAPTCHA on Contribution pages'),
555 'description' => ts('If enabled, reCAPTCHA will show on all contribution pages.'),
ce287b85 556 ),
6a488035
TO
557 'recaptchaPrivateKey' => array(
558 'group_name' => 'CiviCRM Preferences',
559 'group' => 'core',
560 'name' => 'recaptchaPrivateKey',
6a488035
TO
561 'type' => 'String',
562 'quick_form_type' => 'Element',
6a488035
TO
563 'html_attributes' => array(
564 'size' => 64,
565 'maxlength' => 64,
566 ),
c1a2145a 567 'html_type' => 'text',
08e57c58 568 'default' => NULL,
6a488035 569 'add' => '4.3',
732b1d05 570 'title' => ts('Recaptcha Secret Key'),
6a488035
TO
571 'is_domain' => 1,
572 'is_contact' => 0,
08e57c58
TO
573 'description' => NULL,
574 'help_text' => NULL,
6a488035 575 ),
92a8de72 576 'checksum_timeout' => array(
6a488035
TO
577 'group_name' => 'CiviCRM Preferences',
578 'group' => 'core',
92a8de72 579 'name' => 'checksum_timeout',
6a488035
TO
580 'type' => 'Integer',
581 'quick_form_type' => 'Element',
6a488035
TO
582 'html_attributes' => array(
583 'size' => 2,
584 'maxlength' => 8,
585 ),
c1a2145a 586 'html_type' => 'text',
6a488035
TO
587 'default' => 7,
588 'add' => '4.3',
732b1d05 589 'title' => ts('Checksum Lifespan'),
6a488035
TO
590 'is_domain' => 1,
591 'is_contact' => 0,
08e57c58
TO
592 'description' => NULL,
593 'help_text' => NULL,
6a488035 594 ),
4b030206
TO
595 'blogUrl' => array(
596 'group_name' => 'CiviCRM Preferences',
597 'group' => 'core',
598 'name' => 'blogUrl',
4b030206
TO
599 'type' => 'String',
600 'quick_form_type' => 'Element',
4b030206
TO
601 'html_attributes' => array(
602 'size' => 64,
603 'maxlength' => 128,
604 ),
c1a2145a 605 'html_type' => 'text',
4b030206
TO
606 'default' => '*default*',
607 'add' => '4.3',
732b1d05 608 'title' => ts('Blog Feed URL'),
4b030206
TO
609 'is_domain' => 1,
610 'is_contact' => 0,
732b1d05 611 'description' => ts('Blog feed URL used by the blog dashlet'),
612 'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
4b030206 613 ),
847c93ac
TO
614 'communityMessagesUrl' => array(
615 'group_name' => 'CiviCRM Preferences',
616 'group' => 'core',
617 'name' => 'communityMessagesUrl',
847c93ac
TO
618 'type' => 'String',
619 'quick_form_type' => 'Element',
847c93ac
TO
620 'html_attributes' => array(
621 'size' => 64,
622 'maxlength' => 128,
623 ),
c1a2145a 624 'html_type' => 'text',
847c93ac
TO
625 'default' => '*default*',
626 'add' => '4.3',
732b1d05 627 'title' => ts('Community Messages URL'),
847c93ac
TO
628 'is_domain' => 1,
629 'is_contact' => 0,
732b1d05 630 'description' => ts('Service providing CiviCRM community messages'),
631 'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
1f957d1e
TO
632 ),
633 'gettingStartedUrl' => array(
634 'group_name' => 'CiviCRM Preferences',
635 'group' => 'core',
636 'name' => 'gettingStartedUrl',
637 'type' => 'String',
638 'quick_form_type' => 'Element',
639 'html_attributes' => array(
640 'size' => 64,
641 'maxlength' => 128,
642 ),
c1a2145a 643 'html_type' => 'text',
1f957d1e
TO
644 'default' => '*default*',
645 'add' => '4.3',
732b1d05 646 'title' => ts('Getting Started URL'),
1f957d1e
TO
647 'is_domain' => 1,
648 'is_contact' => 0,
732b1d05 649 'description' => ts('Service providing the Getting Started data'),
650 'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
847c93ac 651 ),
6a488035
TO
652 'resCacheCode' => array(
653 'group_name' => 'CiviCRM Preferences',
654 'group' => 'core',
655 'name' => 'resCacheCode',
6a488035 656 'type' => 'String',
30fcf833 657 'quick_form_type' => 'Element',
658 'html_type' => 'text',
08e57c58 659 'default' => NULL,
6a488035 660 'add' => '4.3',
732b1d05 661 'title' => ts('resCacheCode'),
6a488035
TO
662 'is_domain' => 1,
663 'is_contact' => 0,
732b1d05 664 'description' => ts('Code appended to resource URLs (JS/CSS) to coerce HTTP caching'),
08e57c58 665 'help_text' => NULL,
6a488035
TO
666 ),
667 'verifySSL' => array(
668 'group_name' => 'CiviCRM Preferences',
669 'group' => 'core',
670 'name' => 'verifySSL',
671 'type' => 'Boolean',
672 'quick_form_type' => 'YesNo',
673 'default' => 1,
674 'add' => '4.3',
732b1d05 675 'title' => ts('Verify SSL?'),
6a488035
TO
676 'is_domain' => 1,
677 'is_contact' => 0,
732b1d05 678 'description' => ts('If disabled, outbound web-service requests will allow unverified, insecure HTTPS connections'),
679 'help_text' => ts('Unless you are absolutely unable to configure your server to check the SSL certificate of the remote server you should leave this set to Yes'),
6a488035 680 ),
28f07f05
TO
681 'enableSSL' => array(
682 'group_name' => 'CiviCRM Preferences',
683 'group' => 'core',
684 'name' => 'enableSSL',
685 'type' => 'Boolean',
686 'quick_form_type' => 'YesNo',
687 'default' => 0,
688 'add' => '4.5',
732b1d05 689 'title' => ts('Force SSL?'),
28f07f05
TO
690 'is_domain' => 1,
691 'is_contact' => 0,
732b1d05 692 'description' => ts('If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.'),
693 'help_text' => ts('If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.'),
28f07f05 694 ),
94c11eeb
DL
695 'wpBasePage' => array(
696 'group_name' => 'CiviCRM Preferences',
697 'group' => 'core',
698 'name' => 'wpBasePage',
699 'type' => 'String',
700 'html_type' => 'text',
701 'quick_form_type' => 'Element',
94c11eeb
DL
702 'default' => '',
703 'add' => '4.3',
732b1d05 704 'title' => ts('WordPress Base Page'),
94c11eeb
DL
705 'is_domain' => 1,
706 'is_contact' => 0,
732b1d05 707 'description' => ts('If set, CiviCRM will use this setting as the base url.'),
708 'help_text' => ts('By default, CiviCRM will generate front-facing pages using the home page at http://wp/ as its base. If you want to use a different template for CiviCRM pages, set the path here.'),
94c11eeb 709 ),
d5f1ee75
DG
710 'secondDegRelPermissions' => array(
711 'group_name' => 'CiviCRM Preferences',
712 'group' => 'core',
713 'name' => 'secondDegRelPermissions',
d5f1ee75
DG
714 'type' => 'Boolean',
715 'quick_form_type' => 'YesNo',
716 'default' => 0,
717 'add' => '4.3',
732b1d05 718 'title' => ts('Allow second-degree relationship permissions'),
d5f1ee75
DG
719 'is_domain' => 1,
720 'is_contact' => 0,
732b1d05 721 'description' => ts("If enabled, contacts with the permission to edit a related contact will inherit that contact's permission to edit other related contacts"),
08e57c58 722 'help_text' => NULL,
d5f1ee75 723 ),
86eeab72 724 'enable_components' => array(
ac47f7ca 725 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
86eeab72
DS
726 'group_name' => 'CiviCRM Preferences',
727 'group' => 'core',
56fdfc52 728 'name' => 'enable_components',
86eeab72
DS
729 'type' => 'Array',
730 'quick_form_type' => 'Element',
731 'html_type' => 'advmultiselect',
732 'html_attributes' => array(
733 'size' => 5,
734 'style' => 'width:150px',
735 'class' => 'advmultiselect',
736 ),
ac47f7ca 737 'default' => NULL,
56fdfc52 738 'add' => '4.4',
732b1d05 739 'title' => ts('Enable Components'),
86eeab72
DS
740 'is_domain' => '1',
741 'is_contact' => 0,
08e57c58 742 'description' => NULL,
56fdfc52 743 'help_text' => NULL,
2bc3bd8f 744 'on_change' => array(
c8074a93
TO
745 'CRM_Case_Info::onToggleComponents',
746 'CRM_Core_Component::flushEnabledComponents',
747 'call://resources/resetCacheCode',
2bc3bd8f 748 ),
86eeab72 749 ),
14f20d22
CW
750 'disable_core_css' => array(
751 'group_name' => 'CiviCRM Preferences',
752 'group' => 'core',
753 'name' => 'disable_core_css',
754 'type' => 'Boolean',
755 'quick_form_type' => 'YesNo',
756 'default' => '0',
757 'add' => '4.4',
732b1d05 758 'title' => ts('Disable CiviCRM css'),
14f20d22
CW
759 'is_domain' => 1,
760 'is_contact' => 0,
732b1d05 761 'description' => ts('Prevent the stylesheet "civicrm.css" from being loaded.'),
14f20d22
CW
762 'help_text' => NULL,
763 ),
466913fc
AH
764 'empoweredBy' => array(
765 'group_name' => 'CiviCRM Preferences',
766 'group' => 'core',
767 'name' => 'empoweredBy',
768 'type' => 'Boolean',
769 'quick_form_type' => 'YesNo',
770 'default' => 1,
771 'add' => '4.5',
732b1d05 772 'title' => ts('Display "empowered by CiviCRM"'),
466913fc
AH
773 'is_domain' => 1,
774 'is_contact' => 0,
732b1d05 775 'description' => ts('When enabled, "empowered by CiviCRM" is displayed at the bottom of public forms.'),
08e57c58 776 'help_text' => NULL,
466913fc 777 ),
f76ec559
TO
778 'logging_no_trigger_permission' => array(
779 'add' => '4.7',
780 'is_domain' => 1,
781 'is_contact' => 0,
782 'group_name' => 'CiviCRM Preferences',
783 'group' => 'core',
784 'help_text' => ts('(EXPERIMENTAL) If the MySQL user does not have permission to administer triggers, then you must create the triggers outside CiviCRM. No support is provided for this configuration.'),
785 'name' => 'logging_no_trigger_permission',
786 'type' => 'Boolean',
787 'quick_form_type' => 'YesNo',
788 'html_type' => '',
789 'default' => 0,
732b1d05 790 'title' => ts('(EXPERIMENTAL) MySQL user does not have trigger permissions'),
791 'description' => ts('Set this when you intend to manage trigger creation outside of CiviCRM'),
f76ec559 792 ),
e299c1d0
TO
793 'logging' => array(
794 'add' => '4.7',
e299c1d0
TO
795 'help_text' => NULL,
796 'is_domain' => 1,
797 'is_contact' => 0,
798 'group_name' => 'CiviCRM Preferences',
799 'group' => 'core',
800 'name' => 'logging',
801 'type' => 'Boolean',
802 'quick_form_type' => 'YesNo',
803 'html_type' => '',
804 'default' => '0',
732b1d05 805 'title' => ts('Logging'),
806 'description' => ts('If enabled, all actions will be logged with a complete record of changes.'),
e299c1d0
TO
807 'validate_callback' => 'CRM_Logging_Schema::checkLoggingSupport',
808 'on_change' => array(
809 'CRM_Logging_Schema::onToggle',
810 ),
811 ),
8dd883ca 812 'logging_uniqueid_date' => array(
813 'add' => '4.7',
814 'help_text' => ts('This is the date when CRM-18193 was implemented'),
815 'is_domain' => 1,
816 'is_contact' => 0,
817 'group_name' => 'CiviCRM Preferences',
818 'group' => 'core',
819 'name' => 'logging_uniqueid_date',
820 'type' => 'Date',
821 'quick_form_type' => 'DateTime',
822 'html_type' => '',
823 'default' => NULL,
732b1d05 824 'title' => ts('Logging Unique ID not recorded before'),
825 'description' => ts('This is the date when CRM-18193 was implemented'),
8dd883ca 826 ),
827 'logging_all_tables_uniquid' => array(
828 'add' => '4.7',
829 'help_text' => ts('This indicates there are no tables holdng pre-uniqid log_conn_id values (CRM-18193)'),
830 'is_domain' => 1,
831 'is_contact' => 0,
832 'group_name' => 'CiviCRM Preferences',
833 'group' => 'core',
834 'name' => 'logging_all_tables_uniquid',
835 'type' => 'Boolean',
836 'quick_form_type' => 'YesNo',
837 'html_type' => '',
838 'default' => 0,
732b1d05 839 'title' => ts('All tables use Unique Connection ID'),
840 'description' => ts('Do some tables pre-date CRM-18193?'),
8dd883ca 841 ),
348754d5
TO
842 'userFrameworkUsersTableName' => array(
843 'add' => '4.7',
844 'help_text' => NULL,
845 'is_domain' => 1,
846 'is_contact' => 0,
847 'group_name' => 'CiviCRM Preferences',
848 'group' => 'core',
849 'name' => 'userFrameworkUsersTableName',
850 'type' => 'String',
851 'quick_form_type' => 'Element',
852 'html_type' => 'text',
853 'html_attributes' => array(
854 'size' => '32',
855 'maxlength' => '64',
856 ),
857 'default' => NULL,
732b1d05 858 'title' => ts('Drupal Users Table Name'),
348754d5
TO
859 'description' => '',
860 ),
fdd770db
KC
861 'wpLoadPhp' => array(
862 'group_name' => 'CiviCRM Preferences',
863 'group' => 'core',
864 'name' => 'wpLoadPhp',
865 'type' => 'String',
866 'html_type' => 'text',
867 'quick_form_type' => 'Element',
fdd770db
KC
868 'default' => '',
869 'add' => '4.6',
732b1d05 870 'title' => ts('WordPress Path to wp-load.php'),
fdd770db
KC
871 'is_domain' => 1,
872 'is_contact' => 0,
732b1d05 873 'description' => ts('CiviCRM will use this setting as path to bootstrap WP.'),
fdd770db
KC
874 'help_text' => NULL,
875 ),
87334e0f
TO
876 'secure_cache_timeout_minutes' => array(
877 'group_name' => 'CiviCRM Preferences',
878 'group' => 'core',
879 'name' => 'secure_cache_timeout_minutes',
880 'type' => 'Integer',
881 'quick_form_type' => 'Element',
882 'html_type' => 'text',
883 'html_attributes' => array(
884 'size' => 2,
885 'maxlength' => 8,
886 ),
887 'default' => 20,
888 'add' => '4.7',
732b1d05 889 'title' => ts('Secure Cache Timeout'),
87334e0f
TO
890 'is_domain' => 1,
891 'is_contact' => 0,
732b1d05 892 'description' => ts('Maximum number of minutes that secure form data should linger'),
87334e0f
TO
893 'help_text' => NULL,
894 ),
1ab26c95
CW
895 'site_id' => array(
896 'group_name' => 'CiviCRM Preferences',
897 'group' => 'core',
898 'name' => 'site_id',
899 'type' => 'String',
30fcf833 900 'quick_form_type' => 'Element',
901 'html_type' => 'text',
1ab26c95
CW
902 'default' => '',
903 'add' => '4.6',
732b1d05 904 'title' => ts('Unique Site ID'),
1ab26c95
CW
905 'is_domain' => 1,
906 'is_contact' => 0,
907 'description' => NULL,
908 'help_text' => NULL,
909 ),
ac5f7c7f
NH
910 'recentItemsMaxCount' => array(
911 'group_name' => 'CiviCRM Preferences',
912 'group' => 'core',
913 'name' => 'recentItemsMaxCount',
914 'type' => 'Integer',
915 'quick_form_type' => 'Element',
916 'html_type' => 'text',
917 'html_attributes' => array(
918 'size' => 2,
136b401b 919 'maxlength' => 3,
ac5f7c7f
NH
920 ),
921 'default' => 20,
922 'add' => '4.7',
732b1d05 923 'title' => ts('Size of "Recent Items" stack'),
ac5f7c7f
NH
924 'is_domain' => 1,
925 'is_contact' => 0,
732b1d05 926 'description' => ts('How many items should CiviCRM store in it\'s "Recently viewed" list.'),
ac5f7c7f
NH
927 'help_text' => NULL,
928 ),
929 'recentItemsProviders' => array(
930 'group_name' => 'CiviCRM Preferences',
931 'group' => 'core',
932 'name' => 'recentItemsProviders',
933 'type' => 'Array',
934 'html_type' => 'Select',
935 'quick_form_type' => 'Select',
936 'html_attributes' => array(
937 'multiple' => 1,
938 'class' => 'crm-select2',
939 ),
940 'default' => '',
941 'add' => '4.7',
732b1d05 942 'title' => ts('Recent Items Providers'),
ac5f7c7f
NH
943 'is_domain' => 1,
944 'is_contact' => 0,
732b1d05 945 'description' => ts('What providers may save views in CiviCRM\'s "Recently viewed" list. If empty, all are in.'),
ac5f7c7f
NH
946 'help_text' => NULL,
947 'pseudoconstant' => array(
136b401b 948 'callback' => 'CRM_Utils_Recent::getProviders',
ac5f7c7f
NH
949 ),
950 ),
30fcf833 951 'dedupe_default_limit' => array(
952 'group_name' => 'CiviCRM Preferences',
953 'group' => 'core',
954 'name' => 'dedupe_default_limit',
955 'type' => 'Integer',
956 'default' => 0,
957 'quick_form_type' => 'Element',
958 'html_type' => 'text',
959 'add' => '4.7',
732b1d05 960 'title' => ts('Default limit for dedupe screen'),
30fcf833 961 'is_domain' => 1,
962 'is_contact' => 0,
963 'description' => ts('Default to only loading matches against this number of contacts'),
964 'help_text' => ts('Deduping larger databases can crash the server. By configuring a limit other than 0 here the dedupe query will only search for matches against a limited number of contacts.'),
965 ),
5e7f101a 966 'syncCMSEmail' => array(
967 'group_name' => 'CiviCRM Preferences',
968 'group' => 'core',
969 'name' => 'syncCMSEmail',
970 'type' => 'Boolean',
c89a43b3 971 'html_type' => 'YesNo',
5e7f101a 972 'quick_form_type' => 'YesNo',
973 'default' => 1,
974 'add' => '4.7',
c89a43b3 975 'title' => ts('Sync CMS Email'),
5e7f101a 976 'is_domain' => 1,
977 'is_contact' => 0,
c89a43b3 978 'description' => ts('If enabled, then CMS email id will be synchronised with CiviCRM contacts\'s primary email.'),
5e7f101a 979 'help_text' => NULL,
980 ),
a6d192c8 981 'preserve_activity_tab_filter' => array(
982 'group_name' => 'CiviCRM Preferences',
983 'group' => 'core',
984 'name' => 'preserve_activity_tab_filter',
c89a43b3 985 'type' => 'Boolean',
986 'html_type' => 'checkbox',
a6d192c8 987 'default' => '0',
988 'add' => '4.7',
c89a43b3 989 'title' => ts('Preserve activity filters as a user preference'),
a6d192c8 990 'is_domain' => 1,
991 'is_contact' => 0,
c89a43b3 992 'description' => ts('When enabled, any filter settings a user selects on the contact\'s Activity tab will be remembered as they visit other contacts.'),
a6d192c8 993 ),
b5407aa9
JP
994 'do_not_notify_assignees_for' => array(
995 'group_name' => 'CiviCRM Preferences',
ac983377 996 'group' => 'core',
b5407aa9 997 'name' => 'do_not_notify_assignees_for',
ac983377
JP
998 'type' => 'Array',
999 'add' => '4.7',
1000 'is_domain' => 1,
e74d9a43 1001 'is_contact' => 0,
d236326e 1002 'default' => array(),
719eda4a 1003 'title' => ts('Do not notify assignees for'),
1004 'description' => ts('These activity types will be excluded from automated email notifications to assignees.'),
1005 'html_type' => 'select',
ac983377 1006 'html_attributes' => array(
b5407aa9
JP
1007 'multiple' => 1,
1008 'class' => 'huge crm-select2',
ac983377
JP
1009 ),
1010 'pseudoconstant' => array(
1011 'optionGroupName' => 'activity_type',
1012 ),
b5407aa9 1013 'quick_form_type' => 'Select',
ac983377 1014 ),
b7aba061 1015);