SavedSearch API - Only accept safe inputs
[civicrm-core.git] / settings / Core.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 32 */
1bfe4abf
CB
33
34/**
6a488035
TO
35 * Settings metadata file
36 */
dfe1f88a
CW
37return [
38 'contact_view_options' => [
6a488035
TO
39 'group_name' => 'CiviCRM Preferences',
40 'group' => 'core',
41 'name' => 'contact_view_options',
42 'type' => 'String',
43 'html_type' => 'checkboxes',
dfe1f88a 44 'pseudoconstant' => [
6a488035 45 'optionGroupName' => 'contact_view_options',
dfe1f88a 46 ],
6a488035
TO
47 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 113\ 1',
48 'add' => '4.1',
a55c9b35 49 'title' => ts('Viewing Contacts'),
6a488035
TO
50 'is_domain' => '1',
51 'is_contact' => 0,
a55c9b35 52 '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 53 'help_text' => NULL,
6821aa1d 54 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
dfe1f88a
CW
55 ],
56 'contact_edit_options' => [
6a488035
TO
57 'group_name' => 'CiviCRM Preferences',
58 'group' => 'core',
59 'name' => 'contact_edit_options',
60 'type' => 'String',
61 'html_type' => 'checkboxes',
dfe1f88a 62 'pseudoconstant' => [
6a488035 63 'optionGroupName' => 'contact_edit_options',
dfe1f88a 64 ],
007e3bdc 65 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 111\ 112\ 114\ 115\ 116\ 117\ 1',
6a488035 66 'add' => '4.1',
629c8513 67 'title' => ts('Editing Contacts'),
6a488035
TO
68 'is_domain' => 1,
69 'is_contact' => 0,
629c8513 70 '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 71 'help_text' => NULL,
629c8513 72 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
dfe1f88a
CW
73 ],
74 'advanced_search_options' => [
6a488035 75 'group_name' => 'CiviCRM Preferences',
629c8513 76 'group' => 'core',
6a488035
TO
77 'name' => 'advanced_search_options',
78 'type' => 'String',
79 'html_type' => 'checkboxes',
dfe1f88a 80 'pseudoconstant' => [
6a488035 81 'optionGroupName' => 'advanced_search_options',
dfe1f88a 82 ],
007e3bdc 83 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 112\ 113\ 115\ 116\ 117\ 118\ 119\ 1',
6a488035 84 'add' => '4.1',
629c8513 85 'title' => ts('Contact Search'),
6a488035
TO
86 'is_domain' => 1,
87 'is_contact' => 0,
629c8513 88 '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 89 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
dfe1f88a
CW
90 ],
91 'user_dashboard_options' => [
6a488035
TO
92 'group_name' => 'CiviCRM Preferences',
93 'group' => 'core',
94 'name' => 'user_dashboard_options',
95 'type' => 'String',
96 'html_type' => 'checkboxes',
dfe1f88a 97 'pseudoconstant' => [
6a488035 98 'optionGroupName' => 'user_dashboard_options',
dfe1f88a 99 ],
007e3bdc 100 'default' => '\ 11\ 12\ 13\ 14\ 15\ 17\ 18\ 1',
6a488035 101 'add' => '4.1',
732b1d05 102 'title' => ts('Contact Dashboard'),
6a488035
TO
103 'is_domain' => 1,
104 'is_contact' => 0,
94b60b64 105 '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 106 'help_text' => NULL,
94b60b64 107 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
dfe1f88a
CW
108 ],
109 'address_options' => [
6a488035
TO
110 'group_name' => 'CiviCRM Preferences',
111 'group' => 'core',
112 'name' => 'address_options',
113 'type' => 'String',
c7cd4e2c 114 'html_type' => 'checkboxes',
dfe1f88a 115 'pseudoconstant' => [
6a488035 116 'optionGroupName' => 'address_options',
dfe1f88a 117 ],
007e3bdc 118 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 18\ 19\ 110\ 111\ 1',
6a488035 119 'add' => '4.1',
c7cd4e2c 120 'title' => ts('Address Fields'),
6a488035
TO
121 'is_domain' => 1,
122 'is_contact' => 0,
08e57c58
TO
123 'description' => NULL,
124 'help_text' => NULL,
c7cd4e2c 125 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
dfe1f88a
CW
126 ],
127 'address_format' => [
6a488035
TO
128 'group_name' => 'CiviCRM Preferences',
129 'group' => 'core',
130 'name' => 'address_format',
131 'type' => 'String',
c7cd4e2c 132 'html_type' => 'textarea',
207f62c6 133 '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 134 'add' => '4.1',
c7cd4e2c 135 'title' => ts('Address Display Format'),
6a488035
TO
136 'is_domain' => 1,
137 'is_contact' => 0,
08e57c58 138 'description' => NULL,
56fdfc52 139 'help_text' => NULL,
dfe1f88a
CW
140 ],
141 'mailing_format' => [
6a488035
TO
142 'group_name' => 'CiviCRM Preferences',
143 'group' => 'core',
144 'name' => 'mailing_format',
145 'type' => 'String',
c7cd4e2c 146 'html_type' => 'textarea',
207f62c6 147 '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 148 'add' => '4.1',
c7cd4e2c 149 'title' => ts('Mailing Label Format'),
6a488035
TO
150 'is_domain' => 1,
151 'is_contact' => 0,
08e57c58 152 'description' => NULL,
56fdfc52 153 'help_text' => NULL,
dfe1f88a
CW
154 ],
155 'display_name_format' => [
6a488035
TO
156 'group_name' => 'CiviCRM Preferences',
157 'group' => 'core',
158 'name' => 'display_name_format',
159 'type' => 'String',
7399a0a6 160 'html_type' => 'textarea',
6a488035
TO
161 'default' => '{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}',
162 'add' => '4.1',
732b1d05 163 'title' => ts('Individual Display Name Format'),
6a488035
TO
164 'is_domain' => 1,
165 'is_contact' => 0,
7399a0a6 166 'description' => ts('Display name format for individual contact display names.'),
dfe1f88a
CW
167 ],
168 'sort_name_format' => [
6a488035
TO
169 'group_name' => 'CiviCRM Preferences',
170 'group' => 'core',
171 'name' => 'sort_name_format',
172 'type' => 'String',
7399a0a6 173 'html_type' => 'textarea',
6a488035
TO
174 'default' => '{contact.last_name}{, }{contact.first_name}',
175 'add' => '4.1',
732b1d05 176 'title' => ts('Individual Sort Name Format'),
6a488035
TO
177 'is_domain' => 1,
178 'is_contact' => 0,
7399a0a6 179 'description' => ts('Sort name format for individual contact display names.'),
dfe1f88a
CW
180 ],
181 'remote_profile_submissions' => [
61f53f0d
PN
182 'group_name' => 'CiviCRM Preferences',
183 'group' => 'core',
e8a64b98 184 'name' => 'remote_profile_submissions',
61f53f0d
PN
185 'type' => 'Boolean',
186 'quick_form_type' => 'YesNo',
187 'default' => FALSE,
188 'html_type' => 'radio',
189 'add' => '4.7',
1bfe4abf 190 'title' => 'Accept profile submissions from external sites',
61f53f0d
PN
191 'is_domain' => 1,
192 'is_contact' => 0,
732b1d05 193 'description' => ts('If enabled, CiviCRM will permit submissions from external sites to profiles. This is disabled by default to limit abuse.'),
61f53f0d 194 'help_text' => NULL,
dfe1f88a
CW
195 ],
196 'allow_alert_autodismissal' => [
d19abfd1
AP
197 'group_name' => 'CiviCRM Preferences',
198 'group' => 'core',
199 'name' => 'allow_alert_autodismissal',
200 'type' => 'Boolean',
201 'quick_form_type' => 'YesNo',
202 'default' => TRUE,
203 'html_type' => 'radio',
204 'add' => '4.7',
205 'title' => 'Allow alerts to auto-dismiss?',
206 'is_domain' => 1,
207 'is_contact' => 0,
732b1d05 208 'description' => ts('If disabled, CiviCRM will not automatically dismiss any alerts after 10 seconds.'),
d19abfd1 209 'help_text' => NULL,
dfe1f88a
CW
210 ],
211 'editor_id' => [
6a488035
TO
212 'group_name' => 'CiviCRM Preferences',
213 'group' => 'core',
214 'name' => 'editor_id',
215 'type' => 'String',
719eda4a 216 'html_type' => 'select',
72f03b4f 217 'default' => 'CKEditor',
6a488035 218 'add' => '4.1',
732b1d05 219 'title' => ts('Wysiwig Editor'),
dfe1f88a 220 'pseudoconstant' => [
719eda4a 221 'optionGroupName' => 'wysiwyg_editor',
babfca87 222 'keyColumn' => 'name',
dfe1f88a 223 ],
6a488035
TO
224 'is_domain' => 1,
225 'is_contact' => 0,
08e57c58
TO
226 'description' => NULL,
227 'help_text' => NULL,
dfe1f88a
CW
228 ],
229 'contact_ajax_check_similar' => [
6a488035
TO
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')],
dfe1f88a
CW
243 ],
244 'ajaxPopupsEnabled' => [
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,
dfe1f88a
CW
257 ],
258 'activity_assignee_notification' => [
6a488035
TO
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,
dfe1f88a
CW
271 ],
272 'activity_assignee_notification_ics' => [
6a488035
TO
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,
dfe1f88a
CW
285 ],
286 'contact_autocomplete_options' => [
6a488035
TO
287 'group_name' => 'CiviCRM Preferences',
288 'group' => 'core',
289 'name' => 'contact_autocomplete_options',
290 'type' => 'String',
ec3cc27f 291 'html_type' => 'checkboxes',
dfe1f88a 292 'pseudoconstant' => [
d434f797 293 'callback' => 'CRM_Admin_Form_Setting_Search::getContactAutocompleteOptions',
dfe1f88a 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,
ec3cc27f 302 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
94127e7e 303 'validate_callback' => 'CRM_Admin_Form_Setting_Search::enableOptionOne',
dfe1f88a
CW
304 ],
305 'contact_reference_options' => [
6a488035
TO
306 'group_name' => 'CiviCRM Preferences',
307 'group' => 'core',
308 'name' => 'contact_reference_options',
309 'type' => 'String',
ec3cc27f 310 'html_type' => 'checkboxes',
dfe1f88a 311 'pseudoconstant' => [
d434f797 312 'callback' => 'CRM_Admin_Form_Setting_Search::getContactReferenceOptions',
dfe1f88a 313 ],
d434f797 314 'default' => '\ 11\ 12\ 1',
6a488035 315 'add' => '4.1',
732b1d05 316 'title' => ts('Contact Reference Options'),
6a488035
TO
317 'is_domain' => 1,
318 'is_contact' => 0,
732b1d05 319 '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 320 'help_text' => NULL,
ec3cc27f 321 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
94127e7e 322 'validate_callback' => 'CRM_Admin_Form_Setting_Search::enableOptionOne',
dfe1f88a
CW
323 ],
324 'contact_smart_group_display' => [
007e3bdc
TO
325 'group_name' => 'CiviCRM Preferences',
326 'group' => 'core',
327 'name' => 'contact_smart_group_display',
328 'type' => 'String',
329 'html_type' => 'radio',
330 'default' => '1',
331 'add' => '4.7',
332 'title' => ts('Viewing Smart Groups'),
333 'is_domain' => 1,
334 'is_contact' => 0,
c5af8245 335 '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 336 'help_text' => NULL,
dfe1f88a 337 'pseudoconstant' => [
c5af8245 338 'optionGroupName' => 'contact_smart_group_display',
dfe1f88a
CW
339 ],
340 ],
341 'smart_group_cache_refresh_mode' => [
801bafd7 342 'group_name' => 'CiviCRM Preferences',
343 'group' => 'core',
344 'name' => 'smart_group_cache_refresh_mode',
345 'type' => 'String',
346 'html_type' => 'radio',
347 'default' => 'opportunistic',
348 'add' => '4.7',
732b1d05 349 'title' => ts('Smart Group Refresh Mode'),
801bafd7 350 'is_domain' => 1,
351 'is_contact' => 0,
dfe1f88a 352 'pseudoconstant' => [
a8eb1fe6 353 'callback' => 'CRM_Contact_BAO_GroupContactCache::getModes',
dfe1f88a 354 ],
732b1d05 355 'description' => ts('Should the smart groups be by cron jobs or user actions'),
356 '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.'),
dfe1f88a
CW
357 ],
358 'installed' => [
801c5335
C
359 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
360 'group_name' => 'CiviCRM Preferences',
361 'group' => 'core',
362 'name' => 'installed',
363 'type' => 'Boolean',
364 'quick_form_type' => 'YesNo',
365 'default' => FALSE,
366 'add' => '4.7',
732b1d05 367 'title' => ts('System Installed'),
801c5335
C
368 'is_domain' => 1,
369 'is_contact' => 0,
732b1d05 370 'description' => ts('A flag indicating whether this system has run a post-installation routine'),
801c5335 371 'help_text' => NULL,
dfe1f88a
CW
372 ],
373 'max_attachments' => [
6a488035
TO
374 'group_name' => 'CiviCRM Preferences',
375 'group' => 'core',
376 'name' => 'max_attachments',
377 'legacy_key' => 'maxAttachments',
6a488035
TO
378 'type' => 'Integer',
379 'quick_form_type' => 'Element',
380 'html_type' => 'text',
dfe1f88a 381 'html_attributes' => [
6a488035
TO
382 'size' => 2,
383 'maxlength' => 8,
dfe1f88a 384 ],
56fdfc52
TO
385 'default' => 3,
386 'add' => '4.3',
732b1d05 387 'title' => ts('Maximum Attachments'),
56fdfc52
TO
388 'is_domain' => 1,
389 'is_contact' => 0,
8913e915
D
390 'description' => ts('Maximum number of files (documents, images, etc.) which can be attached to emails or activities. This setting applies to UI forms and limits the number of fields available on the form.'),
391 'help_text' => NULL,
392 ],
393 'max_attachments_backend' => [
394 'group_name' => 'CiviCRM Preferences',
395 'group' => 'core',
396 'name' => 'max_attachments_backend',
397 'legacy_key' => 'maxAttachmentsBackend',
398 'type' => 'Integer',
399 'quick_form_type' => 'Element',
400 'html_type' => 'text',
401 'html_attributes' => [
402 'size' => 2,
403 'maxlength' => 8,
404 ],
405 'default' => CRM_Core_BAO_File::DEFAULT_MAX_ATTACHMENTS_BACKEND,
406 'add' => '5.20',
407 'title' => ts('Maximum Attachments For Backend Processes'),
408 'is_domain' => 1,
409 'is_contact' => 0,
410 'description' => ts('Maximum number of files (documents, images, etc.) which can be processed during backend processing such as automated inbound email processing. This should be a big number higher than the other Maximum Attachments setting above. This setting here merely provides an upper limit to prevent attacks that might overload the server.'),
56fdfc52 411 'help_text' => NULL,
dfe1f88a
CW
412 ],
413 'maxFileSize' => [
6a488035
TO
414 'group_name' => 'CiviCRM Preferences',
415 'group' => 'core',
416 'name' => 'maxFileSize',
6a488035
TO
417 'type' => 'Integer',
418 'quick_form_type' => 'Element',
419 'html_type' => 'text',
dfe1f88a 420 'html_attributes' => [
6a488035
TO
421 'size' => 2,
422 'maxlength' => 8,
dfe1f88a 423 ],
6a488035
TO
424 'default' => 3,
425 'add' => '4.3',
732b1d05 426 'title' => ts('Maximum File Size (in MB)'),
6a488035
TO
427 'is_domain' => 1,
428 'is_contact' => 0,
732b1d05 429 '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 430 'help_text' => NULL,
dfe1f88a
CW
431 ],
432 'contact_undelete' => [
6a488035
TO
433 'group_name' => 'CiviCRM Preferences',
434 'group' => 'core',
435 'name' => 'contact_undelete',
436 'type' => 'Boolean',
437 'quick_form_type' => 'YesNo',
438 'default' => 1,
439 'add' => '4.3',
732b1d05 440 'title' => ts('Contact Trash and Undelete'),
6a488035
TO
441 'is_domain' => 1,
442 'is_contact' => 0,
732b1d05 443 '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 444 'help_text' => NULL,
dfe1f88a
CW
445 ],
446 'allowPermDeleteFinancial' => [
f182074e
PN
447 'group_name' => 'CiviCRM Preferences',
448 'group' => 'core',
449 'name' => 'allowPermDeleteFinancial',
450 'type' => 'Boolean',
451 'quick_form_type' => 'YesNo',
452 'default' => FALSE,
453 'add' => '4.3',
732b1d05 454 'title' => ts('Contact Permanent Delete'),
f182074e
PN
455 'is_domain' => 1,
456 'is_contact' => 0,
732b1d05 457 'description' => ts('Allow Permanent Delete for contacts who are linked to live financial transactions'),
08e57c58 458 'help_text' => NULL,
dfe1f88a
CW
459 ],
460 'securityAlert' => [
439a9f1b
TO
461 'group_name' => 'CiviCRM Preferences',
462 'group' => 'core',
fa8dc18c 463 'name' => 'securityAlert',
439a9f1b
TO
464 'type' => 'Boolean',
465 'quick_form_type' => 'YesNo',
466 'default' => 1,
467 'add' => '4.4',
732b1d05 468 'title' => ts('Status Alerts'),
439a9f1b
TO
469 'is_domain' => 1,
470 'is_contact' => 0,
732b1d05 471 '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 472 'help_text' => NULL,
dfe1f88a
CW
473 ],
474 'doNotAttachPDFReceipt' => [
6a488035
TO
475 'group_name' => 'CiviCRM Preferences',
476 'group' => 'core',
477 'name' => 'doNotAttachPDFReceipt',
6a488035
TO
478 'type' => 'Boolean',
479 'quick_form_type' => 'YesNo',
f825dba2 480 'default' => 0,
6a488035 481 'add' => '4.3',
732b1d05 482 'title' => ts('Attach PDF copy to receipts'),
6a488035
TO
483 'is_domain' => 1,
484 'is_contact' => 0,
732b1d05 485 'description' => ts("If enabled, CiviCRM sends PDF receipt as an attachment during event signup or online contribution."),
08e57c58 486 'help_text' => NULL,
dfe1f88a
CW
487 ],
488 'recordGeneratedLetters' => [
cc144465
TO
489 'group_name' => 'CiviCRM Preferences',
490 'group' => 'core',
491 'name' => 'recordGeneratedLetters',
492 'type' => 'String',
493 'quick_form_type' => 'Select',
494 'html_type' => 'Select',
dfe1f88a 495 'html_attributes' => [
cc144465 496 'class' => 'crm-select2',
dfe1f88a 497 ],
cc144465 498 'default' => 'multiple',
3ff77806 499 'add' => '4.7',
732b1d05 500 'title' => ts('Record generated letters'),
cc144465
TO
501 'is_domain' => 1,
502 'is_contact' => 0,
732b1d05 503 'description' => ts('When generating a letter (PDF/Word) via mail-merge, how should the letter be recorded?'),
cc144465 504 'help_text' => NULL,
dfe1f88a 505 'pseudoconstant' => [
cc144465 506 'callback' => 'CRM_Contact_Form_Task_PDFLetterCommon::getLoggingOptions',
dfe1f88a
CW
507 ],
508 ],
509 'wkhtmltopdfPath' => [
6a488035
TO
510 'group_name' => 'CiviCRM Preferences',
511 'group' => 'core',
512 'name' => 'wkhtmltopdfPath',
6a488035
TO
513 'type' => 'String',
514 'quick_form_type' => 'Element',
dfe1f88a 515 'html_attributes' => [
6a488035
TO
516 'size' => 64,
517 'maxlength' => 256,
dfe1f88a 518 ],
c1a2145a 519 'html_type' => 'text',
08e57c58 520 'default' => NULL,
6a488035 521 'add' => '4.3',
732b1d05 522 'title' => ts('Path to wkhtmltopdf executable'),
6a488035
TO
523 'is_domain' => 1,
524 'is_contact' => 0,
08e57c58
TO
525 'description' => NULL,
526 'help_text' => NULL,
dfe1f88a
CW
527 ],
528 'recaptchaOptions' => [
53b0f6c3
TO
529 'group_name' => 'CiviCRM Preferences',
530 'group' => 'core',
531 'name' => 'recaptchaOptions',
53b0f6c3
TO
532 'type' => 'String',
533 'quick_form_type' => 'Element',
dfe1f88a 534 'html_attributes' => [
53b0f6c3
TO
535 'size' => 64,
536 'maxlength' => 64,
dfe1f88a 537 ],
c1a2145a 538 'html_type' => 'text',
53b0f6c3
TO
539 'default' => NULL,
540 'add' => '4.3',
732b1d05 541 'title' => ts('Recaptcha Options'),
53b0f6c3
TO
542 'is_domain' => 1,
543 'is_contact' => 0,
732b1d05 544 '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 545 'help_text' => NULL,
dfe1f88a
CW
546 ],
547 'recaptchaPublicKey' => [
6a488035
TO
548 'group_name' => 'CiviCRM Preferences',
549 'group' => 'core',
550 'name' => 'recaptchaPublicKey',
6a488035
TO
551 'type' => 'String',
552 'quick_form_type' => 'Element',
dfe1f88a 553 'html_attributes' => [
6a488035
TO
554 'size' => 64,
555 'maxlength' => 64,
dfe1f88a 556 ],
c1a2145a 557 'html_type' => 'text',
08e57c58 558 'default' => NULL,
6a488035 559 'add' => '4.3',
732b1d05 560 'title' => ts('Recaptcha Site Key'),
6a488035
TO
561 'is_domain' => 1,
562 'is_contact' => 0,
08e57c58
TO
563 'description' => NULL,
564 'help_text' => NULL,
dfe1f88a
CW
565 ],
566 'forceRecaptcha' => [
ce287b85
AP
567 'add' => '4.7',
568 'help_text' => NULL,
569 'is_domain' => 1,
570 'is_contact' => 0,
571 'group_name' => 'CiviCRM Preferences',
572 'group' => 'core',
573 'name' => 'forceRecaptcha',
574 'type' => 'Boolean',
575 'quick_form_type' => 'YesNo',
576 'html_type' => '',
577 'default' => '0',
732b1d05 578 'title' => ts('Force reCAPTCHA on Contribution pages'),
579 'description' => ts('If enabled, reCAPTCHA will show on all contribution pages.'),
dfe1f88a
CW
580 ],
581 'recaptchaPrivateKey' => [
6a488035
TO
582 'group_name' => 'CiviCRM Preferences',
583 'group' => 'core',
584 'name' => 'recaptchaPrivateKey',
6a488035
TO
585 'type' => 'String',
586 'quick_form_type' => 'Element',
dfe1f88a 587 'html_attributes' => [
6a488035
TO
588 'size' => 64,
589 'maxlength' => 64,
dfe1f88a 590 ],
c1a2145a 591 'html_type' => 'text',
08e57c58 592 'default' => NULL,
6a488035 593 'add' => '4.3',
732b1d05 594 'title' => ts('Recaptcha Secret Key'),
6a488035
TO
595 'is_domain' => 1,
596 'is_contact' => 0,
08e57c58
TO
597 'description' => NULL,
598 'help_text' => NULL,
dfe1f88a
CW
599 ],
600 'checksum_timeout' => [
6a488035
TO
601 'group_name' => 'CiviCRM Preferences',
602 'group' => 'core',
92a8de72 603 'name' => 'checksum_timeout',
6a488035
TO
604 'type' => 'Integer',
605 'quick_form_type' => 'Element',
dfe1f88a 606 'html_attributes' => [
6a488035
TO
607 'size' => 2,
608 'maxlength' => 8,
dfe1f88a 609 ],
c1a2145a 610 'html_type' => 'text',
6a488035
TO
611 'default' => 7,
612 'add' => '4.3',
732b1d05 613 'title' => ts('Checksum Lifespan'),
6a488035
TO
614 'is_domain' => 1,
615 'is_contact' => 0,
08e57c58
TO
616 'description' => NULL,
617 'help_text' => NULL,
dfe1f88a
CW
618 ],
619 'blogUrl' => [
4b030206
TO
620 'group_name' => 'CiviCRM Preferences',
621 'group' => 'core',
622 'name' => 'blogUrl',
4b030206
TO
623 'type' => 'String',
624 'quick_form_type' => 'Element',
dfe1f88a 625 'html_attributes' => [
4b030206
TO
626 'size' => 64,
627 'maxlength' => 128,
dfe1f88a 628 ],
c1a2145a 629 'html_type' => 'text',
4b030206
TO
630 'default' => '*default*',
631 'add' => '4.3',
732b1d05 632 'title' => ts('Blog Feed URL'),
4b030206
TO
633 'is_domain' => 1,
634 'is_contact' => 0,
732b1d05 635 'description' => ts('Blog feed URL used by the blog dashlet'),
636 'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
dfe1f88a
CW
637 ],
638 'communityMessagesUrl' => [
847c93ac
TO
639 'group_name' => 'CiviCRM Preferences',
640 'group' => 'core',
641 'name' => 'communityMessagesUrl',
847c93ac
TO
642 'type' => 'String',
643 'quick_form_type' => 'Element',
dfe1f88a 644 'html_attributes' => [
847c93ac
TO
645 'size' => 64,
646 'maxlength' => 128,
dfe1f88a 647 ],
c1a2145a 648 'html_type' => 'text',
847c93ac
TO
649 'default' => '*default*',
650 'add' => '4.3',
732b1d05 651 'title' => ts('Community Messages URL'),
847c93ac
TO
652 'is_domain' => 1,
653 'is_contact' => 0,
732b1d05 654 'description' => ts('Service providing CiviCRM community messages'),
655 'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
dfe1f88a
CW
656 ],
657 'gettingStartedUrl' => [
1f957d1e
TO
658 'group_name' => 'CiviCRM Preferences',
659 'group' => 'core',
660 'name' => 'gettingStartedUrl',
661 'type' => 'String',
662 'quick_form_type' => 'Element',
dfe1f88a 663 'html_attributes' => [
1f957d1e
TO
664 'size' => 64,
665 'maxlength' => 128,
dfe1f88a 666 ],
c1a2145a 667 'html_type' => 'text',
1f957d1e
TO
668 'default' => '*default*',
669 'add' => '4.3',
732b1d05 670 'title' => ts('Getting Started URL'),
1f957d1e
TO
671 'is_domain' => 1,
672 'is_contact' => 0,
732b1d05 673 'description' => ts('Service providing the Getting Started data'),
674 'help_text' => ts('Use "*default*" for the system default or override with a custom URL'),
dfe1f88a
CW
675 ],
676 'resCacheCode' => [
6a488035
TO
677 'group_name' => 'CiviCRM Preferences',
678 'group' => 'core',
679 'name' => 'resCacheCode',
6a488035 680 'type' => 'String',
30fcf833 681 'quick_form_type' => 'Element',
682 'html_type' => 'text',
08e57c58 683 'default' => NULL,
6a488035 684 'add' => '4.3',
732b1d05 685 'title' => ts('resCacheCode'),
6a488035
TO
686 'is_domain' => 1,
687 'is_contact' => 0,
732b1d05 688 'description' => ts('Code appended to resource URLs (JS/CSS) to coerce HTTP caching'),
08e57c58 689 'help_text' => NULL,
dfe1f88a
CW
690 ],
691 'verifySSL' => [
6a488035
TO
692 'group_name' => 'CiviCRM Preferences',
693 'group' => 'core',
694 'name' => 'verifySSL',
695 'type' => 'Boolean',
696 'quick_form_type' => 'YesNo',
697 'default' => 1,
698 'add' => '4.3',
732b1d05 699 'title' => ts('Verify SSL?'),
6a488035
TO
700 'is_domain' => 1,
701 'is_contact' => 0,
732b1d05 702 'description' => ts('If disabled, outbound web-service requests will allow unverified, insecure HTTPS connections'),
703 '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'),
dfe1f88a
CW
704 ],
705 'enableSSL' => [
28f07f05
TO
706 'group_name' => 'CiviCRM Preferences',
707 'group' => 'core',
708 'name' => 'enableSSL',
709 'type' => 'Boolean',
710 'quick_form_type' => 'YesNo',
711 'default' => 0,
712 'add' => '4.5',
732b1d05 713 'title' => ts('Force SSL?'),
28f07f05
TO
714 'is_domain' => 1,
715 'is_contact' => 0,
732b1d05 716 'description' => ts('If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.'),
717 'help_text' => ts('If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.'),
dfe1f88a
CW
718 ],
719 'wpBasePage' => [
94c11eeb
DL
720 'group_name' => 'CiviCRM Preferences',
721 'group' => 'core',
722 'name' => 'wpBasePage',
723 'type' => 'String',
724 'html_type' => 'text',
725 'quick_form_type' => 'Element',
94c11eeb
DL
726 'default' => '',
727 'add' => '4.3',
732b1d05 728 'title' => ts('WordPress Base Page'),
94c11eeb
DL
729 'is_domain' => 1,
730 'is_contact' => 0,
732b1d05 731 'description' => ts('If set, CiviCRM will use this setting as the base url.'),
732 '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.'),
dfe1f88a
CW
733 ],
734 'secondDegRelPermissions' => [
d5f1ee75
DG
735 'group_name' => 'CiviCRM Preferences',
736 'group' => 'core',
737 'name' => 'secondDegRelPermissions',
d5f1ee75
DG
738 'type' => 'Boolean',
739 'quick_form_type' => 'YesNo',
740 'default' => 0,
741 'add' => '4.3',
732b1d05 742 'title' => ts('Allow second-degree relationship permissions'),
d5f1ee75
DG
743 'is_domain' => 1,
744 'is_contact' => 0,
732b1d05 745 '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 746 'help_text' => NULL,
dfe1f88a
CW
747 ],
748 'enable_components' => [
ac47f7ca 749 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
86eeab72
DS
750 'group_name' => 'CiviCRM Preferences',
751 'group' => 'core',
56fdfc52 752 'name' => 'enable_components',
86eeab72 753 'type' => 'Array',
bfd9c358 754 'html_type' => 'checkboxes',
ac47f7ca 755 'default' => NULL,
56fdfc52 756 'add' => '4.4',
732b1d05 757 'title' => ts('Enable Components'),
86eeab72
DS
758 'is_domain' => '1',
759 'is_contact' => 0,
08e57c58 760 'description' => NULL,
56fdfc52 761 'help_text' => NULL,
dfe1f88a 762 'on_change' => [
c8074a93
TO
763 'CRM_Case_Info::onToggleComponents',
764 'CRM_Core_Component::flushEnabledComponents',
765 'call://resources/resetCacheCode',
dfe1f88a 766 ],
281db812 767 'pseudoconstant' => [
768 'callback' => 'CRM_Core_SelectValues::getComponentSelectValues',
769 ],
dfe1f88a
CW
770 ],
771 'disable_core_css' => [
14f20d22
CW
772 'group_name' => 'CiviCRM Preferences',
773 'group' => 'core',
774 'name' => 'disable_core_css',
775 'type' => 'Boolean',
776 'quick_form_type' => 'YesNo',
777 'default' => '0',
778 'add' => '4.4',
732b1d05 779 'title' => ts('Disable CiviCRM css'),
14f20d22
CW
780 'is_domain' => 1,
781 'is_contact' => 0,
732b1d05 782 'description' => ts('Prevent the stylesheet "civicrm.css" from being loaded.'),
14f20d22 783 'help_text' => NULL,
dfe1f88a
CW
784 ],
785 'empoweredBy' => [
466913fc
AH
786 'group_name' => 'CiviCRM Preferences',
787 'group' => 'core',
788 'name' => 'empoweredBy',
789 'type' => 'Boolean',
790 'quick_form_type' => 'YesNo',
791 'default' => 1,
792 'add' => '4.5',
732b1d05 793 'title' => ts('Display "empowered by CiviCRM"'),
466913fc
AH
794 'is_domain' => 1,
795 'is_contact' => 0,
732b1d05 796 'description' => ts('When enabled, "empowered by CiviCRM" is displayed at the bottom of public forms.'),
08e57c58 797 'help_text' => NULL,
dfe1f88a
CW
798 ],
799 'logging_no_trigger_permission' => [
f76ec559
TO
800 'add' => '4.7',
801 'is_domain' => 1,
802 'is_contact' => 0,
803 'group_name' => 'CiviCRM Preferences',
804 'group' => 'core',
805 '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.'),
806 'name' => 'logging_no_trigger_permission',
807 'type' => 'Boolean',
808 'quick_form_type' => 'YesNo',
809 'html_type' => '',
810 'default' => 0,
732b1d05 811 'title' => ts('(EXPERIMENTAL) MySQL user does not have trigger permissions'),
812 'description' => ts('Set this when you intend to manage trigger creation outside of CiviCRM'),
dfe1f88a
CW
813 ],
814 'logging' => [
e299c1d0 815 'add' => '4.7',
e299c1d0
TO
816 'help_text' => NULL,
817 'is_domain' => 1,
818 'is_contact' => 0,
819 'group_name' => 'CiviCRM Preferences',
820 'group' => 'core',
821 'name' => 'logging',
822 'type' => 'Boolean',
823 'quick_form_type' => 'YesNo',
824 'html_type' => '',
825 'default' => '0',
732b1d05 826 'title' => ts('Logging'),
827 'description' => ts('If enabled, all actions will be logged with a complete record of changes.'),
e299c1d0 828 'validate_callback' => 'CRM_Logging_Schema::checkLoggingSupport',
dfe1f88a 829 'on_change' => [
e299c1d0 830 'CRM_Logging_Schema::onToggle',
dfe1f88a
CW
831 ],
832 ],
833 'logging_uniqueid_date' => [
8dd883ca 834 'add' => '4.7',
835 'help_text' => ts('This is the date when CRM-18193 was implemented'),
836 'is_domain' => 1,
837 'is_contact' => 0,
838 'group_name' => 'CiviCRM Preferences',
839 'group' => 'core',
840 'name' => 'logging_uniqueid_date',
841 'type' => 'Date',
842 'quick_form_type' => 'DateTime',
843 'html_type' => '',
844 'default' => NULL,
732b1d05 845 'title' => ts('Logging Unique ID not recorded before'),
846 'description' => ts('This is the date when CRM-18193 was implemented'),
dfe1f88a
CW
847 ],
848 'logging_all_tables_uniquid' => [
8dd883ca 849 'add' => '4.7',
850 'help_text' => ts('This indicates there are no tables holdng pre-uniqid log_conn_id values (CRM-18193)'),
851 'is_domain' => 1,
852 'is_contact' => 0,
853 'group_name' => 'CiviCRM Preferences',
854 'group' => 'core',
855 'name' => 'logging_all_tables_uniquid',
856 'type' => 'Boolean',
857 'quick_form_type' => 'YesNo',
858 'html_type' => '',
859 'default' => 0,
732b1d05 860 'title' => ts('All tables use Unique Connection ID'),
861 'description' => ts('Do some tables pre-date CRM-18193?'),
dfe1f88a
CW
862 ],
863 'userFrameworkUsersTableName' => [
348754d5
TO
864 'add' => '4.7',
865 'help_text' => NULL,
866 'is_domain' => 1,
867 'is_contact' => 0,
868 'group_name' => 'CiviCRM Preferences',
869 'group' => 'core',
870 'name' => 'userFrameworkUsersTableName',
871 'type' => 'String',
872 'quick_form_type' => 'Element',
873 'html_type' => 'text',
dfe1f88a 874 'html_attributes' => [
348754d5
TO
875 'size' => '32',
876 'maxlength' => '64',
dfe1f88a 877 ],
d98d91bd
SL
878 'default' => 'users',
879 'title' => ts('CMS Users Table Name'),
348754d5 880 'description' => '',
dfe1f88a
CW
881 ],
882 'wpLoadPhp' => [
fdd770db
KC
883 'group_name' => 'CiviCRM Preferences',
884 'group' => 'core',
885 'name' => 'wpLoadPhp',
886 'type' => 'String',
887 'html_type' => 'text',
888 'quick_form_type' => 'Element',
fdd770db
KC
889 'default' => '',
890 'add' => '4.6',
732b1d05 891 'title' => ts('WordPress Path to wp-load.php'),
fdd770db
KC
892 'is_domain' => 1,
893 'is_contact' => 0,
732b1d05 894 'description' => ts('CiviCRM will use this setting as path to bootstrap WP.'),
fdd770db 895 'help_text' => NULL,
dfe1f88a
CW
896 ],
897 'secure_cache_timeout_minutes' => [
87334e0f
TO
898 'group_name' => 'CiviCRM Preferences',
899 'group' => 'core',
900 'name' => 'secure_cache_timeout_minutes',
901 'type' => 'Integer',
902 'quick_form_type' => 'Element',
903 'html_type' => 'text',
dfe1f88a 904 'html_attributes' => [
87334e0f
TO
905 'size' => 2,
906 'maxlength' => 8,
dfe1f88a 907 ],
87334e0f
TO
908 'default' => 20,
909 'add' => '4.7',
732b1d05 910 'title' => ts('Secure Cache Timeout'),
87334e0f
TO
911 'is_domain' => 1,
912 'is_contact' => 0,
732b1d05 913 'description' => ts('Maximum number of minutes that secure form data should linger'),
87334e0f 914 'help_text' => NULL,
dfe1f88a
CW
915 ],
916 'site_id' => [
1ab26c95
CW
917 'group_name' => 'CiviCRM Preferences',
918 'group' => 'core',
919 'name' => 'site_id',
920 'type' => 'String',
30fcf833 921 'quick_form_type' => 'Element',
922 'html_type' => 'text',
1ab26c95
CW
923 'default' => '',
924 'add' => '4.6',
732b1d05 925 'title' => ts('Unique Site ID'),
1ab26c95
CW
926 'is_domain' => 1,
927 'is_contact' => 0,
928 'description' => NULL,
929 'help_text' => NULL,
dfe1f88a
CW
930 ],
931 'recentItemsMaxCount' => [
ac5f7c7f
NH
932 'group_name' => 'CiviCRM Preferences',
933 'group' => 'core',
934 'name' => 'recentItemsMaxCount',
935 'type' => 'Integer',
936 'quick_form_type' => 'Element',
937 'html_type' => 'text',
dfe1f88a 938 'html_attributes' => [
ac5f7c7f 939 'size' => 2,
136b401b 940 'maxlength' => 3,
dfe1f88a 941 ],
ac5f7c7f
NH
942 'default' => 20,
943 'add' => '4.7',
732b1d05 944 'title' => ts('Size of "Recent Items" stack'),
ac5f7c7f
NH
945 'is_domain' => 1,
946 'is_contact' => 0,
732b1d05 947 'description' => ts('How many items should CiviCRM store in it\'s "Recently viewed" list.'),
ac5f7c7f 948 'help_text' => NULL,
dfe1f88a
CW
949 ],
950 'recentItemsProviders' => [
ac5f7c7f
NH
951 'group_name' => 'CiviCRM Preferences',
952 'group' => 'core',
953 'name' => 'recentItemsProviders',
954 'type' => 'Array',
955 'html_type' => 'Select',
956 'quick_form_type' => 'Select',
dfe1f88a 957 'html_attributes' => [
ac5f7c7f
NH
958 'multiple' => 1,
959 'class' => 'crm-select2',
dfe1f88a 960 ],
ac5f7c7f
NH
961 'default' => '',
962 'add' => '4.7',
732b1d05 963 'title' => ts('Recent Items Providers'),
ac5f7c7f
NH
964 'is_domain' => 1,
965 'is_contact' => 0,
732b1d05 966 'description' => ts('What providers may save views in CiviCRM\'s "Recently viewed" list. If empty, all are in.'),
ac5f7c7f 967 'help_text' => NULL,
dfe1f88a 968 'pseudoconstant' => [
136b401b 969 'callback' => 'CRM_Utils_Recent::getProviders',
dfe1f88a
CW
970 ],
971 ],
972 'dedupe_default_limit' => [
30fcf833 973 'group_name' => 'CiviCRM Preferences',
974 'group' => 'core',
975 'name' => 'dedupe_default_limit',
976 'type' => 'Integer',
977 'default' => 0,
978 'quick_form_type' => 'Element',
979 'html_type' => 'text',
980 'add' => '4.7',
732b1d05 981 'title' => ts('Default limit for dedupe screen'),
30fcf833 982 'is_domain' => 1,
983 'is_contact' => 0,
984 'description' => ts('Default to only loading matches against this number of contacts'),
985 '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.'),
dfe1f88a
CW
986 ],
987 'syncCMSEmail' => [
5e7f101a 988 'group_name' => 'CiviCRM Preferences',
989 'group' => 'core',
990 'name' => 'syncCMSEmail',
991 'type' => 'Boolean',
c89a43b3 992 'html_type' => 'YesNo',
5e7f101a 993 'quick_form_type' => 'YesNo',
994 'default' => 1,
995 'add' => '4.7',
c89a43b3 996 'title' => ts('Sync CMS Email'),
5e7f101a 997 'is_domain' => 1,
998 'is_contact' => 0,
c89a43b3 999 'description' => ts('If enabled, then CMS email id will be synchronised with CiviCRM contacts\'s primary email.'),
5e7f101a 1000 'help_text' => NULL,
dfe1f88a
CW
1001 ],
1002 'preserve_activity_tab_filter' => [
a6d192c8 1003 'group_name' => 'CiviCRM Preferences',
1004 'group' => 'core',
1005 'name' => 'preserve_activity_tab_filter',
c89a43b3 1006 'type' => 'Boolean',
1007 'html_type' => 'checkbox',
a6d192c8 1008 'default' => '0',
1009 'add' => '4.7',
c89a43b3 1010 'title' => ts('Preserve activity filters as a user preference'),
a6d192c8 1011 'is_domain' => 1,
1012 'is_contact' => 0,
c89a43b3 1013 'description' => ts('When enabled, any filter settings a user selects on the contact\'s Activity tab will be remembered as they visit other contacts.'),
dfe1f88a
CW
1014 ],
1015 'do_not_notify_assignees_for' => [
b5407aa9 1016 'group_name' => 'CiviCRM Preferences',
ac983377 1017 'group' => 'core',
b5407aa9 1018 'name' => 'do_not_notify_assignees_for',
ac983377
JP
1019 'type' => 'Array',
1020 'add' => '4.7',
1021 'is_domain' => 1,
e74d9a43 1022 'is_contact' => 0,
dfe1f88a 1023 'default' => [],
719eda4a 1024 'title' => ts('Do not notify assignees for'),
1025 'description' => ts('These activity types will be excluded from automated email notifications to assignees.'),
1026 'html_type' => 'select',
dfe1f88a 1027 'html_attributes' => [
b5407aa9
JP
1028 'multiple' => 1,
1029 'class' => 'huge crm-select2',
dfe1f88a
CW
1030 ],
1031 'pseudoconstant' => [
ac983377 1032 'optionGroupName' => 'activity_type',
dfe1f88a 1033 ],
b5407aa9 1034 'quick_form_type' => 'Select',
dfe1f88a
CW
1035 ],
1036 'menubar_position' => [
b30809e4
CW
1037 'group_name' => 'CiviCRM Preferences',
1038 'group' => 'core',
1039 'name' => 'menubar_position',
1040 'type' => 'String',
1041 'html_type' => 'select',
1042 'default' => 'over-cms-menu',
8a52ae34 1043 'add' => '5.12',
b30809e4
CW
1044 'title' => ts('Menubar position'),
1045 'is_domain' => 1,
1046 'is_contact' => 0,
1047 'description' => ts('Location of the CiviCRM main menu.'),
1048 'help_text' => NULL,
dfe1f88a 1049 'options' => [
b30809e4
CW
1050 'over-cms-menu' => ts('Replace website menu'),
1051 'below-cms-menu' => ts('Below website menu'),
1052 'above-crm-container' => ts('Above content area'),
1053 'none' => ts('None - disable menu'),
dfe1f88a
CW
1054 ],
1055 ],
1056 'menubar_color' => [
8a52ae34
CW
1057 'group_name' => 'CiviCRM Preferences',
1058 'group' => 'core',
1059 'name' => 'menubar_color',
1060 'type' => 'String',
1061 'html_type' => 'color',
1062 'default' => '#1b1b1b',
1063 'add' => '5.13',
1064 'title' => ts('Menubar color'),
1065 'is_domain' => 1,
1066 'is_contact' => 0,
1067 'description' => ts('Color of the CiviCRM main menu.'),
1068 'help_text' => NULL,
0f4485f5 1069 'validate_callback' => 'CRM_Utils_Color::normalize',
dfe1f88a 1070 ],
6cb3fe2e
SL
1071 'requestableMimeTypes' => [
1072 'group_name' => 'CiviCRM Preferences',
1073 'group' => 'core',
1074 'name' => 'requestableMimeTypes',
1075 'type' => 'String',
1076 'html_type' => 'Text',
1077 'default' => 'image/jpeg,image/pjpeg,image/gif,image/x-png,image/png,image/jpg,text/html,application/pdf',
1078 'add' => '5.13',
1079 'title' => ts('Mime Types that can be passed as URL params'),
1080 'is_domain' => 1,
1081 'is_contact' => 0,
1082 'description' => ts('Acceptable Mime Types that can be used as part of file urls'),
1083 'help_text' => NULL,
1084 ],
d89d2545
TO
1085 'theme_frontend' => [
1086 'group_name' => 'CiviCRM Preferences',
1087 'group' => 'core',
1088 'name' => 'theme_frontend',
1089 'type' => 'String',
1090 'quick_form_type' => 'Select',
1091 'html_type' => 'Select',
1092 'html_attributes' => array(
1093 'class' => 'crm-select2',
1094 ),
1095 'pseudoconstant' => array(
1096 'callback' => 'call://themes/getAvailable',
1097 ),
1098 'default' => 'default',
4ef562f6 1099 'add' => '5.16',
d89d2545
TO
1100 'title' => ts('Frontend Theme'),
1101 'is_domain' => 1,
1102 'is_contact' => 0,
1103 'description' => ts('Theme to use on frontend pages'),
1104 'help_text' => NULL,
1105 ],
1106 'theme_backend' => [
1107 'group_name' => 'CiviCRM Preferences',
1108 'group' => 'core',
1109 'name' => 'theme_backend',
1110 'type' => 'String',
1111 'quick_form_type' => 'Select',
1112 'html_type' => 'Select',
1113 'html_attributes' => array(
1114 'class' => 'crm-select2',
1115 ),
1116 'pseudoconstant' => array(
1117 'callback' => 'call://themes/getAvailable',
1118 ),
1119 'default' => 'default',
4ef562f6 1120 'add' => '5.16',
d89d2545
TO
1121 'title' => ts('Backend Theme'),
1122 'is_domain' => 1,
1123 'is_contact' => 0,
1124 'description' => ts('Theme to use on backend pages'),
1125 'help_text' => NULL,
1126 ],
9679fb15
SL
1127 'http_timeout' => [
1128 'group_name' => 'CiviCRM Preferences',
1129 'group' => 'core',
1130 'name' => 'http_timeout',
1131 'type' => 'Integer',
1132 'quick_form_type' => 'Element',
1133 'html_type' => 'text',
1134 'html_attributes' => [
1135 'size' => 2,
1136 'maxlength' => 3,
1137 ],
1138 'default' => 5,
d79f40ee 1139 'add' => '5.14',
9679fb15
SL
1140 'title' => ts('HTTP request timeout'),
1141 'is_domain' => 1,
1142 'is_contact' => 0,
1143 'description' => ts('How long should HTTP requests through Guzzle application run for in seconds'),
1144 'help_text' => ts('Set the number of seconds http requests should run for before terminating'),
1145 ],
dfe1f88a 1146];