Merge pull request #16258 from samuelsov/i18ncountriesorder
[civicrm-core.git] / api / v3 / examples / Setting / GetFields.ex.php
CommitLineData
6a488035 1<?php
50fb255d 2/**
a828d7b8 3 * Test Generated example demonstrating the Setting.getfields API.
50fb255d 4 *
5 * Demonstrate return from getfields - see subfolder for variants
6 *
7 * @return array
8 * API result array
9 */
10function setting_getfields_example() {
cf8f0fff 11 $params = [];
6a488035 12
50fb255d 13 try{
a828d7b8 14 $result = civicrm_api3('Setting', 'getfields', $params);
50fb255d 15 }
16 catch (CiviCRM_API3_Exception $e) {
17 // Handle error here.
18 $errorMessage = $e->getMessage();
19 $errorCode = $e->getErrorCode();
20 $errorData = $e->getExtraParams();
cf8f0fff 21 return [
1d8ee3d6 22 'is_error' => 1,
23 'error_message' => $errorMessage,
50fb255d 24 'error_code' => $errorCode,
25 'error_data' => $errorData,
cf8f0fff 26 ];
50fb255d 27 }
28
29 return $result;
6a488035
TO
30}
31
fb32de45 32/**
50fb255d 33 * Function returns array of result expected from previous function.
34 *
35 * @return array
36 * API result array
6a488035 37 */
50fb255d 38function setting_getfields_expectedresult() {
6a488035 39
cf8f0fff 40 $expectedResult = [
50fb255d 41 'is_error' => 0,
42 'version' => 3,
8390b11b 43 'count' => 173,
cf8f0fff
CW
44 'values' => [
45 'address_standardization_provider' => [
50fb255d 46 'group_name' => 'Address Preferences',
47 'group' => 'address',
48 'name' => 'address_standardization_provider',
49 'type' => 'String',
8390b11b 50 'html_type' => 'select',
50fb255d 51 'default' => '',
52 'add' => '4.1',
53 'title' => 'Address Standardization Provider.',
8390b11b
SL
54 'pseudoconstant' => [
55 'callback' => 'CRM_Core_SelectValues::addressProvider',
56 ],
50fb255d 57 'is_domain' => 1,
58 'is_contact' => 0,
59 'description' => '',
60 'help_text' => 'CiviCRM includes an optional plugin for interfacing with the United States Postal Services (USPS) Address Standardization web service. You must register to use the USPS service at https://www.usps.com/business/web-tools-apis/address-information.htm. If you are approved, they will provide you with a User ID and the URL for the service. Plugins for other address standardization services may be available from 3rd party developers. If installed, they will be included in the drop-down below. ',
cf8f0fff
CW
61 ],
62 'address_standardization_userid' => [
50fb255d 63 'group_name' => 'Address Preferences',
64 'group' => 'address',
65 'name' => 'address_standardization_userid',
66 'type' => 'String',
8390b11b 67 'html_type' => 'text',
50fb255d 68 'default' => '',
69 'add' => '4.1',
8390b11b 70 'title' => 'Provider service user ID',
50fb255d 71 'is_domain' => 1,
72 'is_contact' => 0,
73 'description' => '',
74 'help_text' => '',
cf8f0fff
CW
75 ],
76 'address_standardization_url' => [
50fb255d 77 'group_name' => 'Address Preferences',
78 'group' => 'address',
79 'name' => 'address_standardization_url',
80 'type' => 'Text',
8390b11b 81 'html_type' => 'text',
50fb255d 82 'default' => '',
83 'add' => '4.1',
8390b11b 84 'title' => 'Provider Service URL',
50fb255d 85 'is_domain' => 1,
86 'is_contact' => 0,
87 'description' => '',
88 'help_text' => 'Web Service URL',
89 'validate_callback' => 'CRM_Utils_Rule::url',
cf8f0fff
CW
90 ],
91 'hideCountryMailingLabels' => [
1d8ee3d6 92 'group_name' => 'Address Preferences',
93 'group' => 'address',
94 'name' => 'hideCountryMailingLabels',
95 'type' => 'Boolean',
96 'quick_form_type' => 'YesNo',
97 'default' => 0,
98 'add' => '4.7',
99 'title' => 'Hide Country in Mailing Labels when same as domain country',
100 'is_domain' => 1,
101 'is_contact' => 0,
102 'description' => 'Do not display the country field in mailing labels when the country is the same as that of the domain',
103 'help_text' => '',
cf8f0fff
CW
104 ],
105 'tag_unconfirmed' => [
50fb255d 106 'group_name' => 'Campaign Preferences',
107 'group' => 'campaign',
108 'name' => 'tag_unconfirmed',
109 'type' => 'String',
8390b11b 110 'html_type' => 'text',
50fb255d 111 'default' => 'Unconfirmed',
112 'add' => '4.1',
113 'title' => 'Tag for Unconfirmed Petition Signers',
114 'is_domain' => 1,
115 'is_contact' => 0,
8390b11b
SL
116 'description' => 'If set, new contacts that are created when signing a petition are assigned a tag of this name.',
117 'help_text' => '',
118 'settings_pages' => [
119 'campaign' => [
120 'weight' => 10,
121 ],
122 ],
cf8f0fff
CW
123 ],
124 'petition_contacts' => [
50fb255d 125 'group_name' => 'Campaign Preferences',
126 'group' => 'campaign',
127 'name' => 'petition_contacts',
128 'type' => 'String',
8390b11b 129 'html_type' => 'text',
50fb255d 130 'default' => 'Petition Contacts',
131 'add' => '4.1',
132 'title' => 'Petition Signers Group',
133 'is_domain' => 1,
134 'is_contact' => 0,
8390b11b
SL
135 'description' => 'All contacts that have signed a CiviCampaign petition will be added to this group. The group will be created if it does not exist (it is required for email verification).',
136 'help_text' => '',
137 'settings_pages' => [
138 'campaign' => [
139 'weight' => 20,
140 ],
141 ],
cf8f0fff
CW
142 ],
143 'civicaseRedactActivityEmail' => [
798358d0 144 'group_name' => 'CiviCRM Preferences',
145 'group' => 'core',
146 'name' => 'civicaseRedactActivityEmail',
147 'type' => 'String',
148 'quick_form_type' => 'Select',
149 'html_type' => 'Select',
cf8f0fff 150 'html_attributes' => [],
798358d0 151 'default' => 'default',
152 'add' => '4.7',
153 'title' => 'Redact Activity Email',
154 'is_domain' => 1,
155 'is_contact' => 0,
cf8f0fff 156 'pseudoconstant' => [
798358d0 157 'callback' => 'CRM_Case_Info::getRedactOptions',
cf8f0fff 158 ],
798358d0 159 'description' => 'Should activity emails be redacted? (Set \"Default\" to load setting from the legacy \"Settings.xml\" file.)',
160 'help_text' => '',
cf8f0fff
CW
161 ],
162 'civicaseAllowMultipleClients' => [
798358d0 163 'group_name' => 'CiviCRM Preferences',
164 'group' => 'core',
165 'name' => 'civicaseAllowMultipleClients',
166 'type' => 'String',
167 'quick_form_type' => 'Select',
168 'html_type' => 'Select',
cf8f0fff 169 'html_attributes' => [],
798358d0 170 'default' => 'default',
171 'add' => '4.7',
172 'title' => 'Allow Multiple Case Clients',
173 'is_domain' => 1,
174 'is_contact' => 0,
cf8f0fff 175 'pseudoconstant' => [
798358d0 176 'callback' => 'CRM_Case_Info::getMultiClientOptions',
cf8f0fff 177 ],
798358d0 178 'description' => 'How many clients may be associated with a given case? (Set \"Default\" to load setting from the legacy \"Settings.xml\" file.)',
179 'help_text' => '',
cf8f0fff
CW
180 ],
181 'civicaseNaturalActivityTypeSort' => [
798358d0 182 'group_name' => 'CiviCRM Preferences',
183 'group' => 'core',
184 'name' => 'civicaseNaturalActivityTypeSort',
185 'type' => 'String',
186 'quick_form_type' => 'Select',
187 'html_type' => 'Select',
cf8f0fff 188 'html_attributes' => [],
798358d0 189 'default' => 'default',
190 'add' => '4.7',
191 'title' => 'Activity Type Sorting',
192 'is_domain' => 1,
193 'is_contact' => 0,
cf8f0fff 194 'pseudoconstant' => [
798358d0 195 'callback' => 'CRM_Case_Info::getSortOptions',
cf8f0fff 196 ],
798358d0 197 'description' => 'How to sort activity-types on the \"Manage Case\" screen? (Set \"Default\" to load setting from the legacy \"Settings.xml\" file.)',
198 'help_text' => '',
cf8f0fff 199 ],
8390b11b
SL
200 'civicaseActivityRevisions' => [
201 'group_name' => 'CiviCRM Preferences',
202 'group' => 'core',
203 'name' => 'civicaseActivityRevisions',
204 'type' => 'Boolean',
205 'quick_form_type' => 'YesNo',
206 'default' => '',
207 'html_type' => 'radio',
208 'add' => '4.7',
209 'title' => 'Enable Embedded Activity Revisions',
210 'is_domain' => 1,
211 'is_contact' => 0,
212 'description' => 'Enable tracking of activity revisions embedded within the \"civicrm_activity\" table. Alternatively, see \"Administer => System Settings => Misc => Logging\".',
213 'help_text' => '',
214 ],
cf8f0fff 215 'cvv_backoffice_required' => [
50fb255d 216 'group_name' => 'Contribute Preferences',
217 'group' => 'contribute',
218 'name' => 'cvv_backoffice_required',
219 'type' => 'Boolean',
8390b11b 220 'html_type' => 'radio',
50fb255d 221 'quick_form_type' => 'YesNo',
222 'default' => '1',
223 'add' => '4.1',
224 'title' => 'CVV required for backoffice?',
225 'is_domain' => 1,
226 'is_contact' => 0,
227 'description' => 'Is the CVV code required for back office credit card transactions',
228 'help_text' => 'If set it back-office credit card transactions will required a cvv code. Leave as required unless you have a very strong reason to change',
cf8f0fff
CW
229 ],
230 'contribution_invoice_settings' => [
1d8ee3d6 231 'group_name' => 'Contribute Preferences',
232 'group' => 'contribute',
233 'name' => 'contribution_invoice_settings',
234 'type' => 'Array',
cf8f0fff 235 'default' => [
1d8ee3d6 236 'invoice_prefix' => 'INV_',
237 'credit_notes_prefix' => 'CN_',
238 'due_date' => '10',
239 'due_date_period' => 'days',
240 'notes' => '',
241 'tax_term' => 'Sales Tax',
242 'tax_display_settings' => 'Inclusive',
cf8f0fff 243 ],
1d8ee3d6 244 'add' => '4.7',
245 'title' => 'Contribution Invoice Settings',
246 'is_domain' => 1,
247 'is_contact' => 0,
248 'description' => '',
249 'help_text' => '',
cf8f0fff
CW
250 ],
251 'invoicing' => [
1d8ee3d6 252 'group_name' => 'Contribute Preferences',
253 'group' => 'contribute',
254 'name' => 'invoicing',
8390b11b 255 'type' => 'Boolean',
1d8ee3d6 256 'html_type' => 'checkbox',
257 'quick_form_type' => 'Element',
258 'default' => 0,
259 'add' => '4.7',
260 'title' => 'Enable Tax and Invoicing',
261 'is_domain' => 1,
262 'is_contact' => 0,
8390b11b
SL
263 'on_change' => [
264 '0' => 'CRM_Invoicing_Utils::onToggle',
265 ],
cf8f0fff
CW
266 ],
267 'acl_financial_type' => [
1d8ee3d6 268 'group_name' => 'Contribute Preferences',
269 'group' => 'contribute',
270 'name' => 'acl_financial_type',
8390b11b 271 'type' => 'Boolean',
1d8ee3d6 272 'html_type' => 'checkbox',
273 'quick_form_type' => 'Element',
274 'default' => 0,
275 'add' => '4.7',
276 'title' => 'Enable Access Control by Financial Type',
277 'is_domain' => 1,
278 'is_contact' => 0,
279 'description' => '',
280 'help_text' => '',
8390b11b
SL
281 'help' => [
282 'id' => 'acl_financial_type',
283 ],
cf8f0fff
CW
284 ],
285 'deferred_revenue_enabled' => [
1d8ee3d6 286 'group_name' => 'Contribute Preferences',
287 'group' => 'contribute',
288 'name' => 'deferred_revenue_enabled',
8390b11b 289 'type' => 'Boolean',
1d8ee3d6 290 'html_type' => 'checkbox',
291 'quick_form_type' => 'Element',
292 'default' => 0,
293 'add' => '4.7',
294 'title' => 'Enable Deferred Revenue',
295 'is_domain' => 1,
296 'is_contact' => 0,
297 'description' => '',
298 'help_text' => '',
cf8f0fff
CW
299 ],
300 'default_invoice_page' => [
1d8ee3d6 301 'group_name' => 'Contribute Preferences',
302 'group' => 'contribute',
303 'name' => 'default_invoice_page',
304 'type' => 'Integer',
8390b11b 305 'quick_form_type' => 'Select',
1d8ee3d6 306 'default' => '',
cf8f0fff 307 'pseudoconstant' => [
8390b11b 308 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
cf8f0fff 309 ],
1d8ee3d6 310 'html_type' => 'select',
311 'add' => '4.7',
312 'title' => 'Default invoice payment page',
313 'is_domain' => 1,
314 'is_contact' => 0,
315 'description' => '',
316 'help_text' => '',
cf8f0fff
CW
317 ],
318 'always_post_to_accounts_receivable' => [
1d8ee3d6 319 'group_name' => 'Contribute Preferences',
320 'group' => 'contribute',
321 'name' => 'always_post_to_accounts_receivable',
8390b11b 322 'type' => 'Boolean',
1d8ee3d6 323 'html_type' => 'checkbox',
324 'quick_form_type' => 'Element',
325 'default' => 0,
326 'add' => '4.7',
327 'title' => 'Always post to Accounts Receivable?',
328 'is_domain' => 1,
329 'is_contact' => 0,
330 'description' => '',
331 'help_text' => '',
cf8f0fff
CW
332 ],
333 'update_contribution_on_membership_type_change' => [
268a84f2 334 'group_name' => 'Contribute Preferences',
335 'group' => 'contribute',
336 'name' => 'update_contribution_on_membership_type_change',
8390b11b 337 'type' => 'Boolean',
268a84f2 338 'html_type' => 'checkbox',
339 'quick_form_type' => 'Element',
340 'default' => 0,
341 'add' => '4.7',
342 'title' => 'Automatically update related contributions when Membership Type is changed',
343 'is_domain' => 1,
344 'is_contact' => 0,
345 'description' => 'Enabling this setting will update related contribution of membership(s) except if the membership is paid for with a recurring contribution.',
346 'help_text' => '',
cf8f0fff
CW
347 ],
348 'contact_view_options' => [
50fb255d 349 'group_name' => 'CiviCRM Preferences',
350 'group' => 'core',
351 'name' => 'contact_view_options',
352 'type' => 'String',
353 'html_type' => 'checkboxes',
cf8f0fff 354 'pseudoconstant' => [
50fb255d 355 'optionGroupName' => 'contact_view_options',
cf8f0fff 356 ],
1d8ee3d6 357 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 113\ 1',
50fb255d 358 'add' => '4.1',
359 'title' => 'Viewing Contacts',
360 'is_domain' => '1',
361 'is_contact' => 0,
8390b11b 362 'description' => '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.',
50fb255d 363 'help_text' => '',
8390b11b 364 'serialize' => 1,
cf8f0fff
CW
365 ],
366 'contact_edit_options' => [
50fb255d 367 'group_name' => 'CiviCRM Preferences',
368 'group' => 'core',
369 'name' => 'contact_edit_options',
370 'type' => 'String',
371 'html_type' => 'checkboxes',
cf8f0fff 372 'pseudoconstant' => [
50fb255d 373 'optionGroupName' => 'contact_edit_options',
cf8f0fff 374 ],
1d8ee3d6 375 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 111\ 112\ 114\ 115\ 116\ 117\ 1',
50fb255d 376 'add' => '4.1',
377 'title' => 'Editing Contacts',
378 'is_domain' => 1,
379 'is_contact' => 0,
8390b11b 380 'description' => '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.',
50fb255d 381 'help_text' => '',
8390b11b 382 'serialize' => 1,
cf8f0fff
CW
383 ],
384 'advanced_search_options' => [
50fb255d 385 'group_name' => 'CiviCRM Preferences',
8390b11b 386 'group' => 'core',
50fb255d 387 'name' => 'advanced_search_options',
388 'type' => 'String',
389 'html_type' => 'checkboxes',
cf8f0fff 390 'pseudoconstant' => [
50fb255d 391 'optionGroupName' => 'advanced_search_options',
cf8f0fff 392 ],
1d8ee3d6 393 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 17\ 18\ 19\ 110\ 111\ 112\ 113\ 115\ 116\ 117\ 118\ 119\ 1',
50fb255d 394 'add' => '4.1',
395 'title' => 'Contact Search',
396 'is_domain' => 1,
397 'is_contact' => 0,
8390b11b
SL
398 'description' => '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.',
399 'serialize' => 1,
cf8f0fff
CW
400 ],
401 'user_dashboard_options' => [
50fb255d 402 'group_name' => 'CiviCRM Preferences',
403 'group' => 'core',
404 'name' => 'user_dashboard_options',
405 'type' => 'String',
406 'html_type' => 'checkboxes',
cf8f0fff 407 'pseudoconstant' => [
50fb255d 408 'optionGroupName' => 'user_dashboard_options',
cf8f0fff 409 ],
1d8ee3d6 410 'default' => '\ 11\ 12\ 13\ 14\ 15\ 17\ 18\ 1',
50fb255d 411 'add' => '4.1',
412 'title' => 'Contact Dashboard',
413 'is_domain' => 1,
414 'is_contact' => 0,
8390b11b 415 'description' => '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.',
50fb255d 416 'help_text' => '',
8390b11b 417 'serialize' => 1,
cf8f0fff
CW
418 ],
419 'address_options' => [
50fb255d 420 'group_name' => 'CiviCRM Preferences',
421 'group' => 'core',
422 'name' => 'address_options',
423 'type' => 'String',
8390b11b 424 'html_type' => 'checkboxes',
cf8f0fff 425 'pseudoconstant' => [
50fb255d 426 'optionGroupName' => 'address_options',
cf8f0fff 427 ],
1d8ee3d6 428 'default' => '\ 11\ 12\ 13\ 14\ 15\ 16\ 18\ 19\ 110\ 111\ 1',
50fb255d 429 'add' => '4.1',
8390b11b 430 'title' => 'Address Fields',
50fb255d 431 'is_domain' => 1,
432 'is_contact' => 0,
433 'description' => '',
434 'help_text' => '',
8390b11b 435 'serialize' => 1,
cf8f0fff
CW
436 ],
437 'address_format' => [
50fb255d 438 'group_name' => 'CiviCRM Preferences',
439 'group' => 'core',
440 'name' => 'address_format',
441 'type' => 'String',
8390b11b 442 'html_type' => 'textarea',
50fb255d 443 'default' => '{contact.address_name}
6a488035
TO
444{contact.street_address}
445{contact.supplemental_address_1}
446{contact.supplemental_address_2}
207f62c6 447{contact.supplemental_address_3}
6a488035
TO
448{contact.city}{, }{contact.state_province}{ }{contact.postal_code}
449{contact.country}',
50fb255d 450 'add' => '4.1',
8390b11b 451 'title' => 'Address Display Format',
50fb255d 452 'is_domain' => 1,
453 'is_contact' => 0,
454 'description' => '',
455 'help_text' => '',
cf8f0fff
CW
456 ],
457 'mailing_format' => [
50fb255d 458 'group_name' => 'CiviCRM Preferences',
459 'group' => 'core',
460 'name' => 'mailing_format',
461 'type' => 'String',
8390b11b 462 'html_type' => 'textarea',
50fb255d 463 'default' => '{contact.addressee}
6a488035
TO
464{contact.street_address}
465{contact.supplemental_address_1}
466{contact.supplemental_address_2}
207f62c6 467{contact.supplemental_address_3}
6a488035
TO
468{contact.city}{, }{contact.state_province}{ }{contact.postal_code}
469{contact.country}',
50fb255d 470 'add' => '4.1',
8390b11b 471 'title' => 'Mailing Label Format',
50fb255d 472 'is_domain' => 1,
473 'is_contact' => 0,
474 'description' => '',
475 'help_text' => '',
cf8f0fff
CW
476 ],
477 'display_name_format' => [
50fb255d 478 'group_name' => 'CiviCRM Preferences',
479 'group' => 'core',
480 'name' => 'display_name_format',
481 'type' => 'String',
8390b11b 482 'html_type' => 'textarea',
50fb255d 483 'default' => '{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}',
484 'add' => '4.1',
8390b11b 485 'title' => 'Individual Display Name Format',
50fb255d 486 'is_domain' => 1,
487 'is_contact' => 0,
8390b11b 488 'description' => 'Display name format for individual contact display names.',
cf8f0fff
CW
489 ],
490 'sort_name_format' => [
50fb255d 491 'group_name' => 'CiviCRM Preferences',
492 'group' => 'core',
493 'name' => 'sort_name_format',
494 'type' => 'String',
8390b11b 495 'html_type' => 'textarea',
50fb255d 496 'default' => '{contact.last_name}{, }{contact.first_name}',
497 'add' => '4.1',
8390b11b 498 'title' => 'Individual Sort Name Format',
50fb255d 499 'is_domain' => 1,
500 'is_contact' => 0,
8390b11b 501 'description' => 'Sort name format for individual contact display names.',
cf8f0fff
CW
502 ],
503 'remote_profile_submissions' => [
1d8ee3d6 504 'group_name' => 'CiviCRM Preferences',
505 'group' => 'core',
506 'name' => 'remote_profile_submissions',
507 'type' => 'Boolean',
508 'quick_form_type' => 'YesNo',
509 'default' => '',
510 'html_type' => 'radio',
511 'add' => '4.7',
512 'title' => 'Accept profile submissions from external sites',
513 'is_domain' => 1,
514 'is_contact' => 0,
515 'description' => 'If enabled, CiviCRM will permit submissions from external sites to profiles. This is disabled by default to limit abuse.',
516 'help_text' => '',
cf8f0fff
CW
517 ],
518 'allow_alert_autodismissal' => [
d19abfd1
AP
519 'group_name' => 'CiviCRM Preferences',
520 'group' => 'core',
521 'name' => 'allow_alert_autodismissal',
522 'type' => 'Boolean',
523 'quick_form_type' => 'YesNo',
8390b11b 524 'default' => TRUE,
d19abfd1
AP
525 'html_type' => 'radio',
526 'add' => '4.7',
527 'title' => 'Allow alerts to auto-dismiss?',
528 'is_domain' => 1,
529 'is_contact' => 0,
8390b11b 530 'description' => 'If disabled, CiviCRM will not automatically dismiss any alerts after 10 seconds.',
d19abfd1 531 'help_text' => '',
cf8f0fff
CW
532 ],
533 'editor_id' => [
50fb255d 534 'group_name' => 'CiviCRM Preferences',
535 'group' => 'core',
536 'name' => 'editor_id',
537 'type' => 'String',
8390b11b 538 'html_type' => 'select',
1d8ee3d6 539 'default' => 'CKEditor',
50fb255d 540 'add' => '4.1',
541 'title' => 'Wysiwig Editor',
8390b11b
SL
542 'pseudoconstant' => [
543 'optionGroupName' => 'wysiwyg_editor',
544 'keyColumn' => 'name',
545 ],
50fb255d 546 'is_domain' => 1,
547 'is_contact' => 0,
548 'description' => '',
549 'help_text' => '',
cf8f0fff
CW
550 ],
551 'contact_ajax_check_similar' => [
50fb255d 552 'group_name' => 'CiviCRM Preferences',
553 'group' => 'core',
554 'name' => 'contact_ajax_check_similar',
555 'type' => 'String',
8390b11b 556 'html_type' => 'radio',
1d8ee3d6 557 'default' => '1',
50fb255d 558 'add' => '4.1',
8390b11b 559 'title' => 'Check for Similar Contacts',
50fb255d 560 'is_domain' => 1,
561 'is_contact' => 0,
562 'description' => '',
563 'help_text' => '',
8390b11b
SL
564 'options' => [
565 '1' => 'While Typing',
566 '0' => 'When Saving',
567 '2' => 'Never',
568 ],
cf8f0fff
CW
569 ],
570 'ajaxPopupsEnabled' => [
50fb255d 571 'group_name' => 'CiviCRM Preferences',
572 'group' => 'core',
573 'name' => 'ajaxPopupsEnabled',
574 'type' => 'Boolean',
8390b11b 575 'html_type' => 'checkbox',
50fb255d 576 'default' => 1,
577 'add' => '4.5',
8390b11b 578 'title' => 'Enable Popup Forms',
50fb255d 579 'is_domain' => 1,
580 'is_contact' => 0,
581 'description' => '',
582 'help_text' => '',
cf8f0fff
CW
583 ],
584 'activity_assignee_notification' => [
50fb255d 585 'group_name' => 'CiviCRM Preferences',
586 'group' => 'core',
587 'name' => 'activity_assignee_notification',
8390b11b
SL
588 'type' => 'Boolean',
589 'html_type' => 'checkbox',
1d8ee3d6 590 'default' => '1',
50fb255d 591 'add' => '4.1',
592 'title' => 'Notify Activity Assignees',
593 'is_domain' => 1,
594 'is_contact' => 0,
595 'description' => '',
596 'help_text' => '',
cf8f0fff
CW
597 ],
598 'activity_assignee_notification_ics' => [
50fb255d 599 'group_name' => 'CiviCRM Preferences',
600 'group' => 'core',
601 'name' => 'activity_assignee_notification_ics',
8390b11b
SL
602 'type' => 'Boolean',
603 'html_type' => 'checkbox',
1d8ee3d6 604 'default' => 0,
50fb255d 605 'add' => '4.3',
606 'title' => 'Include ICal Invite to Activity Assignees',
607 'is_domain' => 1,
608 'is_contact' => 0,
609 'description' => '',
610 'help_text' => '',
cf8f0fff
CW
611 ],
612 'contact_autocomplete_options' => [
50fb255d 613 'group_name' => 'CiviCRM Preferences',
614 'group' => 'core',
615 'name' => 'contact_autocomplete_options',
616 'type' => 'String',
8390b11b 617 'html_type' => 'checkboxes',
cf8f0fff 618 'pseudoconstant' => [
1d8ee3d6 619 'callback' => 'CRM_Admin_Form_Setting_Search::getContactAutocompleteOptions',
cf8f0fff 620 ],
1d8ee3d6 621 'default' => '\ 11\ 12\ 1',
50fb255d 622 'add' => '4.1',
1d8ee3d6 623 'title' => 'Autocomplete Contact Search',
50fb255d 624 'is_domain' => 1,
625 'is_contact' => 0,
1d8ee3d6 626 'description' => 'Selected fields will be displayed in back-office autocomplete dropdown search results (Quick Search, etc.). Contact Name is always included.',
50fb255d 627 'help_text' => '',
8390b11b
SL
628 'serialize' => 1,
629 'validate_callback' => 'CRM_Admin_Form_Setting_Search::enableOptionOne',
cf8f0fff
CW
630 ],
631 'contact_reference_options' => [
50fb255d 632 'group_name' => 'CiviCRM Preferences',
633 'group' => 'core',
634 'name' => 'contact_reference_options',
635 'type' => 'String',
8390b11b 636 'html_type' => 'checkboxes',
cf8f0fff 637 'pseudoconstant' => [
1d8ee3d6 638 'callback' => 'CRM_Admin_Form_Setting_Search::getContactReferenceOptions',
cf8f0fff 639 ],
1d8ee3d6 640 'default' => '\ 11\ 12\ 1',
50fb255d 641 'add' => '4.1',
642 'title' => 'Contact Reference Options',
643 'is_domain' => 1,
644 'is_contact' => 0,
1d8ee3d6 645 'description' => '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.',
646 'help_text' => '',
8390b11b
SL
647 'serialize' => 1,
648 'validate_callback' => 'CRM_Admin_Form_Setting_Search::enableOptionOne',
cf8f0fff
CW
649 ],
650 'contact_smart_group_display' => [
1d8ee3d6 651 'group_name' => 'CiviCRM Preferences',
652 'group' => 'core',
653 'name' => 'contact_smart_group_display',
654 'type' => 'String',
655 'html_type' => 'radio',
656 'default' => '1',
657 'add' => '4.7',
658 'title' => 'Viewing Smart Groups',
659 'is_domain' => 1,
660 'is_contact' => 0,
8390b11b 661 'description' => '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.',
50fb255d 662 'help_text' => '',
8390b11b
SL
663 'pseudoconstant' => [
664 'optionGroupName' => 'contact_smart_group_display',
665 ],
cf8f0fff
CW
666 ],
667 'smart_group_cache_refresh_mode' => [
1d8ee3d6 668 'group_name' => 'CiviCRM Preferences',
669 'group' => 'core',
670 'name' => 'smart_group_cache_refresh_mode',
671 'type' => 'String',
672 'html_type' => 'radio',
673 'default' => 'opportunistic',
674 'add' => '4.7',
675 'title' => 'Smart Group Refresh Mode',
676 'is_domain' => 1,
677 'is_contact' => 0,
cf8f0fff 678 'pseudoconstant' => [
1d8ee3d6 679 'callback' => 'CRM_Contact_BAO_GroupContactCache::getModes',
cf8f0fff 680 ],
1d8ee3d6 681 'description' => 'Should the smart groups be by cron jobs or user actions',
682 'help_text' => '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.',
cf8f0fff
CW
683 ],
684 'installed' => [
1d8ee3d6 685 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
686 'group_name' => 'CiviCRM Preferences',
687 'group' => 'core',
688 'name' => 'installed',
689 'type' => 'Boolean',
690 'quick_form_type' => 'YesNo',
691 'default' => '',
692 'add' => '4.7',
693 'title' => 'System Installed',
694 'is_domain' => 1,
695 'is_contact' => 0,
696 'description' => 'A flag indicating whether this system has run a post-installation routine',
697 'help_text' => '',
cf8f0fff
CW
698 ],
699 'max_attachments' => [
50fb255d 700 'group_name' => 'CiviCRM Preferences',
701 'group' => 'core',
702 'name' => 'max_attachments',
703 'legacy_key' => 'maxAttachments',
50fb255d 704 'type' => 'Integer',
705 'quick_form_type' => 'Element',
706 'html_type' => 'text',
cf8f0fff 707 'html_attributes' => [
50fb255d 708 'size' => 2,
709 'maxlength' => 8,
cf8f0fff 710 ],
50fb255d 711 'default' => 3,
712 'add' => '4.3',
713 'title' => 'Maximum Attachments',
714 'is_domain' => 1,
715 'is_contact' => 0,
8390b11b 716 'description' => 'Maximum number of files (documents, images, etc.) which can be attached to emails or activities.',
50fb255d 717 'help_text' => '',
cf8f0fff
CW
718 ],
719 'maxFileSize' => [
50fb255d 720 'group_name' => 'CiviCRM Preferences',
721 'group' => 'core',
722 'name' => 'maxFileSize',
50fb255d 723 'type' => 'Integer',
724 'quick_form_type' => 'Element',
725 'html_type' => 'text',
cf8f0fff 726 'html_attributes' => [
50fb255d 727 'size' => 2,
728 'maxlength' => 8,
cf8f0fff 729 ],
50fb255d 730 'default' => 3,
731 'add' => '4.3',
732 'title' => 'Maximum File Size (in MB)',
733 'is_domain' => 1,
734 'is_contact' => 0,
8390b11b 735 'description' => 'Maximum Size of file (documents, images, etc.) which can be attached to emails or activities.<br />Note: php.ini should support this file size.',
50fb255d 736 'help_text' => '',
cf8f0fff
CW
737 ],
738 'contact_undelete' => [
50fb255d 739 'group_name' => 'CiviCRM Preferences',
740 'group' => 'core',
741 'name' => 'contact_undelete',
742 'type' => 'Boolean',
743 'quick_form_type' => 'YesNo',
744 'default' => 1,
745 'add' => '4.3',
746 'title' => 'Contact Trash and Undelete',
747 'is_domain' => 1,
748 'is_contact' => 0,
749 'description' => '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).',
750 'help_text' => '',
cf8f0fff
CW
751 ],
752 'allowPermDeleteFinancial' => [
50fb255d 753 'group_name' => 'CiviCRM Preferences',
754 'group' => 'core',
755 'name' => 'allowPermDeleteFinancial',
756 'type' => 'Boolean',
757 'quick_form_type' => 'YesNo',
758 'default' => '',
759 'add' => '4.3',
760 'title' => 'Contact Permanent Delete',
761 'is_domain' => 1,
762 'is_contact' => 0,
763 'description' => 'Allow Permanent Delete for contacts who are linked to live financial transactions',
764 'help_text' => '',
cf8f0fff
CW
765 ],
766 'securityAlert' => [
50fb255d 767 'group_name' => 'CiviCRM Preferences',
768 'group' => 'core',
769 'name' => 'securityAlert',
770 'type' => 'Boolean',
771 'quick_form_type' => 'YesNo',
772 'default' => 1,
773 'add' => '4.4',
1d8ee3d6 774 'title' => 'Status Alerts',
50fb255d 775 'is_domain' => 1,
776 'is_contact' => 0,
1d8ee3d6 777 'description' => 'If enabled, CiviCRM will display pop-up notifications (no more than once per day) for security and misconfiguration issues identified in the system check.',
50fb255d 778 'help_text' => '',
cf8f0fff
CW
779 ],
780 'doNotAttachPDFReceipt' => [
50fb255d 781 'group_name' => 'CiviCRM Preferences',
782 'group' => 'core',
783 'name' => 'doNotAttachPDFReceipt',
50fb255d 784 'type' => 'Boolean',
785 'quick_form_type' => 'YesNo',
1d8ee3d6 786 'default' => 0,
50fb255d 787 'add' => '4.3',
788 'title' => 'Attach PDF copy to receipts',
789 'is_domain' => 1,
790 'is_contact' => 0,
791 'description' => 'If enabled, CiviCRM sends PDF receipt as an attachment during event signup or online contribution.',
792 'help_text' => '',
cf8f0fff
CW
793 ],
794 'recordGeneratedLetters' => [
798358d0 795 'group_name' => 'CiviCRM Preferences',
796 'group' => 'core',
797 'name' => 'recordGeneratedLetters',
798 'type' => 'String',
799 'quick_form_type' => 'Select',
800 'html_type' => 'Select',
cf8f0fff 801 'html_attributes' => [
798358d0 802 'class' => 'crm-select2',
cf8f0fff 803 ],
798358d0 804 'default' => 'multiple',
805 'add' => '4.7',
806 'title' => 'Record generated letters',
807 'is_domain' => 1,
808 'is_contact' => 0,
809 'description' => 'When generating a letter (PDF/Word) via mail-merge, how should the letter be recorded?',
810 'help_text' => '',
cf8f0fff 811 'pseudoconstant' => [
798358d0 812 'callback' => 'CRM_Contact_Form_Task_PDFLetterCommon::getLoggingOptions',
cf8f0fff
CW
813 ],
814 ],
815 'wkhtmltopdfPath' => [
50fb255d 816 'group_name' => 'CiviCRM Preferences',
817 'group' => 'core',
818 'name' => 'wkhtmltopdfPath',
50fb255d 819 'type' => 'String',
820 'quick_form_type' => 'Element',
cf8f0fff 821 'html_attributes' => [
50fb255d 822 'size' => 64,
823 'maxlength' => 256,
cf8f0fff 824 ],
8390b11b 825 'html_type' => 'text',
50fb255d 826 'default' => '',
827 'add' => '4.3',
828 'title' => 'Path to wkhtmltopdf executable',
829 'is_domain' => 1,
830 'is_contact' => 0,
831 'description' => '',
832 'help_text' => '',
cf8f0fff
CW
833 ],
834 'recaptchaOptions' => [
1d8ee3d6 835 'group_name' => 'CiviCRM Preferences',
836 'group' => 'core',
837 'name' => 'recaptchaOptions',
838 'type' => 'String',
839 'quick_form_type' => 'Element',
cf8f0fff 840 'html_attributes' => [
1d8ee3d6 841 'size' => 64,
842 'maxlength' => 64,
cf8f0fff 843 ],
8390b11b 844 'html_type' => 'text',
1d8ee3d6 845 'default' => '',
846 'add' => '4.3',
847 'title' => 'Recaptcha Options',
848 'is_domain' => 1,
849 'is_contact' => 0,
850 'description' => '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>.',
851 'help_text' => '',
cf8f0fff
CW
852 ],
853 'recaptchaPublicKey' => [
50fb255d 854 'group_name' => 'CiviCRM Preferences',
855 'group' => 'core',
856 'name' => 'recaptchaPublicKey',
50fb255d 857 'type' => 'String',
858 'quick_form_type' => 'Element',
cf8f0fff 859 'html_attributes' => [
50fb255d 860 'size' => 64,
861 'maxlength' => 64,
cf8f0fff 862 ],
8390b11b 863 'html_type' => 'text',
50fb255d 864 'default' => '',
865 'add' => '4.3',
cf7eb07b 866 'title' => 'Recaptcha Site Key',
50fb255d 867 'is_domain' => 1,
868 'is_contact' => 0,
869 'description' => '',
870 'help_text' => '',
cf8f0fff 871 ],
8390b11b
SL
872 'forceRecaptcha' => [
873 'add' => '4.7',
874 'help_text' => '',
875 'is_domain' => 1,
876 'is_contact' => 0,
877 'group_name' => 'CiviCRM Preferences',
878 'group' => 'core',
879 'name' => 'forceRecaptcha',
880 'type' => 'Boolean',
881 'quick_form_type' => 'YesNo',
882 'html_type' => '',
883 'default' => 0,
884 'title' => 'Force reCAPTCHA on Contribution pages',
885 'description' => 'If enabled, reCAPTCHA will show on all contribution pages.',
886 ],
cf8f0fff 887 'recaptchaPrivateKey' => [
50fb255d 888 'group_name' => 'CiviCRM Preferences',
889 'group' => 'core',
890 'name' => 'recaptchaPrivateKey',
50fb255d 891 'type' => 'String',
892 'quick_form_type' => 'Element',
cf8f0fff 893 'html_attributes' => [
50fb255d 894 'size' => 64,
895 'maxlength' => 64,
cf8f0fff 896 ],
8390b11b 897 'html_type' => 'text',
50fb255d 898 'default' => '',
899 'add' => '4.3',
cf7eb07b 900 'title' => 'Recaptcha Secret Key',
50fb255d 901 'is_domain' => 1,
902 'is_contact' => 0,
903 'description' => '',
904 'help_text' => '',
cf8f0fff
CW
905 ],
906 'checksum_timeout' => [
50fb255d 907 'group_name' => 'CiviCRM Preferences',
908 'group' => 'core',
1d8ee3d6 909 'name' => 'checksum_timeout',
50fb255d 910 'type' => 'Integer',
911 'quick_form_type' => 'Element',
cf8f0fff 912 'html_attributes' => [
50fb255d 913 'size' => 2,
914 'maxlength' => 8,
cf8f0fff 915 ],
8390b11b 916 'html_type' => 'text',
50fb255d 917 'default' => 7,
918 'add' => '4.3',
919 'title' => 'Checksum Lifespan',
920 'is_domain' => 1,
921 'is_contact' => 0,
922 'description' => '',
923 'help_text' => '',
cf8f0fff
CW
924 ],
925 'blogUrl' => [
50fb255d 926 'group_name' => 'CiviCRM Preferences',
927 'group' => 'core',
928 'name' => 'blogUrl',
50fb255d 929 'type' => 'String',
930 'quick_form_type' => 'Element',
cf8f0fff 931 'html_attributes' => [
50fb255d 932 'size' => 64,
933 'maxlength' => 128,
cf8f0fff 934 ],
8390b11b 935 'html_type' => 'text',
50fb255d 936 'default' => '*default*',
937 'add' => '4.3',
938 'title' => 'Blog Feed URL',
939 'is_domain' => 1,
940 'is_contact' => 0,
941 'description' => 'Blog feed URL used by the blog dashlet',
942 'help_text' => 'Use \"*default*\" for the system default or override with a custom URL',
cf8f0fff
CW
943 ],
944 'communityMessagesUrl' => [
50fb255d 945 'group_name' => 'CiviCRM Preferences',
946 'group' => 'core',
947 'name' => 'communityMessagesUrl',
50fb255d 948 'type' => 'String',
949 'quick_form_type' => 'Element',
cf8f0fff 950 'html_attributes' => [
50fb255d 951 'size' => 64,
952 'maxlength' => 128,
cf8f0fff 953 ],
8390b11b 954 'html_type' => 'text',
50fb255d 955 'default' => '*default*',
956 'add' => '4.3',
957 'title' => 'Community Messages URL',
958 'is_domain' => 1,
959 'is_contact' => 0,
960 'description' => 'Service providing CiviCRM community messages',
961 'help_text' => 'Use \"*default*\" for the system default or override with a custom URL',
cf8f0fff
CW
962 ],
963 'gettingStartedUrl' => [
50fb255d 964 'group_name' => 'CiviCRM Preferences',
965 'group' => 'core',
1d8ee3d6 966 'name' => 'gettingStartedUrl',
50fb255d 967 'type' => 'String',
968 'quick_form_type' => 'Element',
cf8f0fff 969 'html_attributes' => [
1d8ee3d6 970 'size' => 64,
971 'maxlength' => 128,
cf8f0fff 972 ],
8390b11b 973 'html_type' => 'text',
1d8ee3d6 974 'default' => '*default*',
975 'add' => '4.3',
976 'title' => 'Getting Started URL',
977 'is_domain' => 1,
978 'is_contact' => 0,
979 'description' => 'Service providing the Getting Started data',
980 'help_text' => 'Use \"*default*\" for the system default or override with a custom URL',
cf8f0fff
CW
981 ],
982 'resCacheCode' => [
1d8ee3d6 983 'group_name' => 'CiviCRM Preferences',
984 'group' => 'core',
985 'name' => 'resCacheCode',
986 'type' => 'String',
987 'quick_form_type' => 'Element',
988 'html_type' => 'text',
50fb255d 989 'default' => '',
990 'add' => '4.3',
1d8ee3d6 991 'title' => 'resCacheCode',
50fb255d 992 'is_domain' => 1,
993 'is_contact' => 0,
994 'description' => 'Code appended to resource URLs (JS/CSS) to coerce HTTP caching',
995 'help_text' => '',
cf8f0fff
CW
996 ],
997 'verifySSL' => [
50fb255d 998 'group_name' => 'CiviCRM Preferences',
999 'group' => 'core',
1000 'name' => 'verifySSL',
1001 'type' => 'Boolean',
1002 'quick_form_type' => 'YesNo',
1003 'default' => 1,
1004 'add' => '4.3',
1005 'title' => 'Verify SSL?',
1006 'is_domain' => 1,
1007 'is_contact' => 0,
1d8ee3d6 1008 'description' => 'If disabled, outbound web-service requests will allow unverified, insecure HTTPS connections',
50fb255d 1009 'help_text' => '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',
cf8f0fff
CW
1010 ],
1011 'enableSSL' => [
1d8ee3d6 1012 'group_name' => 'CiviCRM Preferences',
1013 'group' => 'core',
1014 'name' => 'enableSSL',
1015 'type' => 'Boolean',
1016 'quick_form_type' => 'YesNo',
1017 'default' => 0,
1018 'add' => '4.5',
1019 'title' => 'Force SSL?',
1020 'is_domain' => 1,
1021 'is_contact' => 0,
1022 'description' => 'If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.',
1023 'help_text' => 'If enabled, inbound HTTP requests for sensitive pages will be redirected to HTTPS.',
cf8f0fff
CW
1024 ],
1025 'wpBasePage' => [
50fb255d 1026 'group_name' => 'CiviCRM Preferences',
1027 'group' => 'core',
1028 'name' => 'wpBasePage',
1029 'type' => 'String',
1030 'html_type' => 'text',
1031 'quick_form_type' => 'Element',
50fb255d 1032 'default' => '',
1033 'add' => '4.3',
1034 'title' => 'WordPress Base Page',
1035 'is_domain' => 1,
1036 'is_contact' => 0,
1037 'description' => 'If set, CiviCRM will use this setting as the base url.',
1038 'help_text' => '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.',
cf8f0fff
CW
1039 ],
1040 'secondDegRelPermissions' => [
50fb255d 1041 'group_name' => 'CiviCRM Preferences',
1042 'group' => 'core',
1043 'name' => 'secondDegRelPermissions',
50fb255d 1044 'type' => 'Boolean',
1045 'quick_form_type' => 'YesNo',
1046 'default' => 0,
1047 'add' => '4.3',
1048 'title' => 'Allow second-degree relationship permissions',
1049 'is_domain' => 1,
1050 'is_contact' => 0,
1051 'description' => 'If enabled, contacts with the permission to edit a related contact will inherit that contact\'s permission to edit other related contacts',
1052 'help_text' => '',
cf8f0fff
CW
1053 ],
1054 'enable_components' => [
1d8ee3d6 1055 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1056 'group_name' => 'CiviCRM Preferences',
1057 'group' => 'core',
1058 'name' => 'enable_components',
1059 'type' => 'Array',
8390b11b 1060 'html_type' => 'checkboxes',
1d8ee3d6 1061 'default' => '',
50fb255d 1062 'add' => '4.4',
1063 'title' => 'Enable Components',
1064 'is_domain' => '1',
1065 'is_contact' => 0,
1066 'description' => '',
1067 'help_text' => '',
cf8f0fff 1068 'on_change' => [
5c49fee0
CW
1069 '0' => 'CRM_Case_Info::onToggleComponents',
1070 '1' => 'CRM_Core_Component::flushEnabledComponents',
1071 '2' => 'call://resources/resetCacheCode',
cf8f0fff 1072 ],
8390b11b
SL
1073 'pseudoconstant' => [
1074 'callback' => 'CRM_Core_SelectValues::getComponentSelectValues',
1075 ],
cf8f0fff
CW
1076 ],
1077 'disable_core_css' => [
50fb255d 1078 'group_name' => 'CiviCRM Preferences',
1079 'group' => 'core',
1080 'name' => 'disable_core_css',
1081 'type' => 'Boolean',
1082 'quick_form_type' => 'YesNo',
1083 'default' => 0,
1084 'add' => '4.4',
1085 'title' => 'Disable CiviCRM css',
1086 'is_domain' => 1,
1087 'is_contact' => 0,
1088 'description' => 'Prevent the stylesheet \"civicrm.css\" from being loaded.',
1089 'help_text' => '',
cf8f0fff
CW
1090 ],
1091 'empoweredBy' => [
50fb255d 1092 'group_name' => 'CiviCRM Preferences',
1093 'group' => 'core',
1094 'name' => 'empoweredBy',
50fb255d 1095 'type' => 'Boolean',
1096 'quick_form_type' => 'YesNo',
1097 'default' => 1,
1098 'add' => '4.5',
1099 'title' => 'Display \"empowered by CiviCRM\"',
1100 'is_domain' => 1,
1101 'is_contact' => 0,
1102 'description' => 'When enabled, \"empowered by CiviCRM\" is displayed at the bottom of public forms.',
1103 'help_text' => '',
cf8f0fff
CW
1104 ],
1105 'logging_no_trigger_permission' => [
1d8ee3d6 1106 'add' => '4.7',
1107 'is_domain' => 1,
1108 'is_contact' => 0,
1109 'group_name' => 'CiviCRM Preferences',
1110 'group' => 'core',
1111 'help_text' => '(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.',
1112 'name' => 'logging_no_trigger_permission',
50fb255d 1113 'type' => 'Boolean',
1114 'quick_form_type' => 'YesNo',
1d8ee3d6 1115 'html_type' => '',
50fb255d 1116 'default' => 0,
1d8ee3d6 1117 'title' => '(EXPERIMENTAL) MySQL user does not have trigger permissions',
1118 'description' => 'Set this when you intend to manage trigger creation outside of CiviCRM',
cf8f0fff
CW
1119 ],
1120 'logging' => [
1d8ee3d6 1121 'add' => '4.7',
1122 'help_text' => '',
50fb255d 1123 'is_domain' => 1,
1124 'is_contact' => 0,
1d8ee3d6 1125 'group_name' => 'CiviCRM Preferences',
1126 'group' => 'core',
1127 'name' => 'logging',
50fb255d 1128 'type' => 'Boolean',
1129 'quick_form_type' => 'YesNo',
1d8ee3d6 1130 'html_type' => '',
50fb255d 1131 'default' => 0,
1d8ee3d6 1132 'title' => 'Logging',
1133 'description' => 'If enabled, all actions will be logged with a complete record of changes.',
1134 'validate_callback' => 'CRM_Logging_Schema::checkLoggingSupport',
cf8f0fff 1135 'on_change' => [
1d8ee3d6 1136 '0' => 'CRM_Logging_Schema::onToggle',
cf8f0fff
CW
1137 ],
1138 ],
1139 'logging_uniqueid_date' => [
1d8ee3d6 1140 'add' => '4.7',
1141 'help_text' => 'This is the date when CRM-18193 was implemented',
50fb255d 1142 'is_domain' => 1,
1143 'is_contact' => 0,
1d8ee3d6 1144 'group_name' => 'CiviCRM Preferences',
1145 'group' => 'core',
1146 'name' => 'logging_uniqueid_date',
1147 'type' => 'Date',
1148 'quick_form_type' => 'DateTime',
1149 'html_type' => '',
1150 'default' => '',
1151 'title' => 'Logging Unique ID not recorded before',
1152 'description' => 'This is the date when CRM-18193 was implemented',
cf8f0fff
CW
1153 ],
1154 'logging_all_tables_uniquid' => [
1d8ee3d6 1155 'add' => '4.7',
1156 'help_text' => 'This indicates there are no tables holdng pre-uniqid log_conn_id values (CRM-18193)',
1157 'is_domain' => 1,
1158 'is_contact' => 0,
1159 'group_name' => 'CiviCRM Preferences',
1160 'group' => 'core',
1161 'name' => 'logging_all_tables_uniquid',
50fb255d 1162 'type' => 'Boolean',
1163 'quick_form_type' => 'YesNo',
1d8ee3d6 1164 'html_type' => '',
50fb255d 1165 'default' => 0,
1d8ee3d6 1166 'title' => 'All tables use Unique Connection ID',
1167 'description' => 'Do some tables pre-date CRM-18193?',
cf8f0fff
CW
1168 ],
1169 'userFrameworkUsersTableName' => [
1d8ee3d6 1170 'add' => '4.7',
1171 'help_text' => '',
50fb255d 1172 'is_domain' => 1,
1173 'is_contact' => 0,
1d8ee3d6 1174 'group_name' => 'CiviCRM Preferences',
1175 'group' => 'core',
1176 'name' => 'userFrameworkUsersTableName',
50fb255d 1177 'type' => 'String',
1178 'quick_form_type' => 'Element',
1179 'html_type' => 'text',
cf8f0fff 1180 'html_attributes' => [
1d8ee3d6 1181 'size' => '32',
1182 'maxlength' => '64',
cf8f0fff 1183 ],
8390b11b 1184 'default' => 'users',
d98d91bd 1185 'title' => 'CMS Users Table Name',
1d8ee3d6 1186 'description' => '',
cf8f0fff
CW
1187 ],
1188 'wpLoadPhp' => [
1d8ee3d6 1189 'group_name' => 'CiviCRM Preferences',
1190 'group' => 'core',
1191 'name' => 'wpLoadPhp',
1192 'type' => 'String',
1193 'html_type' => 'text',
1194 'quick_form_type' => 'Element',
1195 'default' => '',
1196 'add' => '4.6',
1197 'title' => 'WordPress Path to wp-load.php',
1198 'is_domain' => 1,
1199 'is_contact' => 0,
1200 'description' => 'CiviCRM will use this setting as path to bootstrap WP.',
1201 'help_text' => '',
cf8f0fff
CW
1202 ],
1203 'secure_cache_timeout_minutes' => [
1d8ee3d6 1204 'group_name' => 'CiviCRM Preferences',
1205 'group' => 'core',
1206 'name' => 'secure_cache_timeout_minutes',
1207 'type' => 'Integer',
1208 'quick_form_type' => 'Element',
1209 'html_type' => 'text',
cf8f0fff 1210 'html_attributes' => [
1d8ee3d6 1211 'size' => 2,
1212 'maxlength' => 8,
cf8f0fff 1213 ],
1d8ee3d6 1214 'default' => 20,
1215 'add' => '4.7',
1216 'title' => 'Secure Cache Timeout',
1217 'is_domain' => 1,
1218 'is_contact' => 0,
1219 'description' => 'Maximum number of minutes that secure form data should linger',
1220 'help_text' => '',
cf8f0fff
CW
1221 ],
1222 'site_id' => [
1d8ee3d6 1223 'group_name' => 'CiviCRM Preferences',
1224 'group' => 'core',
1225 'name' => 'site_id',
1226 'type' => 'String',
1227 'quick_form_type' => 'Element',
1228 'html_type' => 'text',
1229 'default' => '',
1230 'add' => '4.6',
1231 'title' => 'Unique Site ID',
1232 'is_domain' => 1,
1233 'is_contact' => 0,
1234 'description' => '',
1235 'help_text' => '',
cf8f0fff
CW
1236 ],
1237 'recentItemsMaxCount' => [
1d8ee3d6 1238 'group_name' => 'CiviCRM Preferences',
1239 'group' => 'core',
1240 'name' => 'recentItemsMaxCount',
1241 'type' => 'Integer',
1242 'quick_form_type' => 'Element',
1243 'html_type' => 'text',
cf8f0fff 1244 'html_attributes' => [
1d8ee3d6 1245 'size' => 2,
1246 'maxlength' => 3,
cf8f0fff 1247 ],
1d8ee3d6 1248 'default' => 20,
1249 'add' => '4.7',
1250 'title' => 'Size of \"Recent Items\" stack',
1251 'is_domain' => 1,
1252 'is_contact' => 0,
1253 'description' => 'How many items should CiviCRM store in it\'s \"Recently viewed\" list.',
1254 'help_text' => '',
cf8f0fff
CW
1255 ],
1256 'recentItemsProviders' => [
1d8ee3d6 1257 'group_name' => 'CiviCRM Preferences',
1258 'group' => 'core',
1259 'name' => 'recentItemsProviders',
1260 'type' => 'Array',
1261 'html_type' => 'Select',
1262 'quick_form_type' => 'Select',
cf8f0fff 1263 'html_attributes' => [
1d8ee3d6 1264 'multiple' => 1,
1265 'class' => 'crm-select2',
cf8f0fff 1266 ],
1d8ee3d6 1267 'default' => '',
1268 'add' => '4.7',
1269 'title' => 'Recent Items Providers',
1270 'is_domain' => 1,
1271 'is_contact' => 0,
1272 'description' => 'What providers may save views in CiviCRM\'s \"Recently viewed\" list. If empty, all are in.',
1273 'help_text' => '',
cf8f0fff 1274 'pseudoconstant' => [
1d8ee3d6 1275 'callback' => 'CRM_Utils_Recent::getProviders',
cf8f0fff
CW
1276 ],
1277 ],
1278 'dedupe_default_limit' => [
1d8ee3d6 1279 'group_name' => 'CiviCRM Preferences',
1280 'group' => 'core',
1281 'name' => 'dedupe_default_limit',
1282 'type' => 'Integer',
1283 'default' => 0,
1284 'quick_form_type' => 'Element',
1285 'html_type' => 'text',
1286 'add' => '4.7',
1287 'title' => 'Default limit for dedupe screen',
1288 'is_domain' => 1,
1289 'is_contact' => 0,
1290 'description' => 'Default to only loading matches against this number of contacts',
1291 'help_text' => '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.',
cf8f0fff
CW
1292 ],
1293 'syncCMSEmail' => [
1d8ee3d6 1294 'group_name' => 'CiviCRM Preferences',
1295 'group' => 'core',
1296 'name' => 'syncCMSEmail',
1297 'type' => 'Boolean',
8390b11b 1298 'html_type' => 'YesNo',
1d8ee3d6 1299 'quick_form_type' => 'YesNo',
1300 'default' => 1,
1301 'add' => '4.7',
1302 'title' => 'Sync CMS Email',
1303 'is_domain' => 1,
1304 'is_contact' => 0,
8390b11b 1305 'description' => 'If enabled, then CMS email id will be synchronised with CiviCRM contacts\'s primary email.',
1d8ee3d6 1306 'help_text' => '',
cf8f0fff
CW
1307 ],
1308 'preserve_activity_tab_filter' => [
798358d0 1309 'group_name' => 'CiviCRM Preferences',
1310 'group' => 'core',
1311 'name' => 'preserve_activity_tab_filter',
8390b11b
SL
1312 'type' => 'Boolean',
1313 'html_type' => 'checkbox',
798358d0 1314 'default' => 0,
1315 'add' => '4.7',
1316 'title' => 'Preserve activity filters as a user preference',
1317 'is_domain' => 1,
1318 'is_contact' => 0,
8390b11b
SL
1319 'description' => 'When enabled, any filter settings a user selects on the contact\'s Activity tab will be remembered as they visit other contacts.',
1320 ],
1321 'do_not_notify_assignees_for' => [
1322 'group_name' => 'CiviCRM Preferences',
1323 'group' => 'core',
1324 'name' => 'do_not_notify_assignees_for',
1325 'type' => 'Array',
1326 'add' => '4.7',
1327 'is_domain' => 1,
1328 'is_contact' => 0,
1329 'default' => [],
1330 'title' => 'Do not notify assignees for',
1331 'description' => 'These activity types will be excluded from automated email notifications to assignees.',
1332 'html_type' => 'select',
1333 'html_attributes' => [
1334 'multiple' => 1,
1335 'class' => 'huge crm-select2',
1336 ],
1337 'pseudoconstant' => [
1338 'optionGroupName' => 'activity_type',
1339 ],
1340 'quick_form_type' => 'Select',
1341 ],
1342 'menubar_position' => [
1343 'group_name' => 'CiviCRM Preferences',
1344 'group' => 'core',
1345 'name' => 'menubar_position',
1346 'type' => 'String',
1347 'html_type' => 'select',
1348 'default' => 'over-cms-menu',
1349 'add' => '5.12',
1350 'title' => 'Menubar position',
1351 'is_domain' => 1,
1352 'is_contact' => 0,
1353 'description' => 'Location of the CiviCRM main menu.',
1354 'help_text' => '',
1355 'options' => [
1356 'over-cms-menu' => 'Replace website menu',
1357 'below-cms-menu' => 'Below website menu',
1358 'above-crm-container' => 'Above content area',
1359 'none' => 'None - disable menu',
1360 ],
1361 ],
1362 'menubar_color' => [
1363 'group_name' => 'CiviCRM Preferences',
1364 'group' => 'core',
1365 'name' => 'menubar_color',
1366 'type' => 'String',
1367 'html_type' => 'color',
1368 'default' => '#1b1b1b',
1369 'add' => '5.13',
1370 'title' => 'Menubar color',
1371 'is_domain' => 1,
1372 'is_contact' => 0,
1373 'description' => 'Color of the CiviCRM main menu.',
1374 'help_text' => '',
1375 'validate_callback' => 'CRM_Utils_Color::normalize',
1376 ],
1377 'requestableMimeTypes' => [
1378 'group_name' => 'CiviCRM Preferences',
1379 'group' => 'core',
1380 'name' => 'requestableMimeTypes',
1381 'type' => 'String',
1382 'html_type' => 'Text',
1383 'default' => 'image/jpeg,image/pjpeg,image/gif,image/x-png,image/png,image/jpg,text/html,application/pdf',
1384 'add' => '5.13',
1385 'title' => 'Mime Types that can be passed as URL params',
1386 'is_domain' => 1,
1387 'is_contact' => 0,
1388 'description' => 'Acceptable Mime Types that can be used as part of file urls',
1389 'help_text' => '',
1390 ],
1391 'theme_frontend' => [
1392 'group_name' => 'CiviCRM Preferences',
1393 'group' => 'core',
1394 'name' => 'theme_frontend',
1395 'type' => 'String',
1396 'quick_form_type' => 'Select',
1397 'html_type' => 'Select',
1398 'html_attributes' => [
1399 'class' => 'crm-select2',
1400 ],
1401 'pseudoconstant' => [
1402 'callback' => 'call://themes/getAvailable',
1403 ],
1404 'default' => 'default',
1405 'add' => '5.16',
1406 'title' => 'Frontend Theme',
1407 'is_domain' => 1,
1408 'is_contact' => 0,
1409 'description' => 'Theme to use on frontend pages',
798358d0 1410 'help_text' => '',
cf8f0fff 1411 ],
8390b11b
SL
1412 'theme_backend' => [
1413 'group_name' => 'CiviCRM Preferences',
1414 'group' => 'core',
1415 'name' => 'theme_backend',
1416 'type' => 'String',
1417 'quick_form_type' => 'Select',
1418 'html_type' => 'Select',
1419 'html_attributes' => [
1420 'class' => 'crm-select2',
1421 ],
1422 'pseudoconstant' => [
1423 'callback' => 'call://themes/getAvailable',
1424 ],
1425 'default' => 'default',
1426 'add' => '5.16',
1427 'title' => 'Backend Theme',
1428 'is_domain' => 1,
1429 'is_contact' => 0,
1430 'description' => 'Theme to use on backend pages',
1431 'help_text' => '',
1432 ],
1433 'http_timeout' => [
1434 'group_name' => 'CiviCRM Preferences',
1435 'group' => 'core',
1436 'name' => 'http_timeout',
1437 'type' => 'Integer',
1438 'quick_form_type' => 'Element',
1439 'html_type' => 'text',
1440 'html_attributes' => [
1441 'size' => 2,
1442 'maxlength' => 3,
1443 ],
1444 'default' => 5,
1445 'add' => '5.14',
1446 'title' => 'HTTP request timeout',
1447 'is_domain' => 1,
1448 'is_contact' => 0,
1449 'description' => 'How long should HTTP requests through Guzzle application run for in seconds',
1450 'help_text' => 'Set the number of seconds http requests should run for before terminating',
1451 ],
cf8f0fff 1452 'assetCache' => [
798358d0 1453 'group_name' => 'Developer Preferences',
1454 'group' => 'developer',
1455 'name' => 'assetCache',
1456 'type' => 'String',
1457 'quick_form_type' => 'Select',
1458 'html_type' => 'Select',
cf8f0fff 1459 'html_attributes' => [],
798358d0 1460 'default' => 'auto',
1461 'add' => '4.7',
1462 'title' => 'Asset Caching',
1463 'is_domain' => 1,
1464 'is_contact' => 0,
1465 'description' => 'Store computed JS/CSS content in cache files? (Note: In \"Auto\" mode, the \"Debug\" setting will determine whether to activate the cache.)',
1466 'help_text' => '',
cf8f0fff 1467 'pseudoconstant' => [
798358d0 1468 'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
cf8f0fff
CW
1469 ],
1470 ],
1471 'userFrameworkLogging' => [
1d8ee3d6 1472 'group_name' => 'Developer Preferences',
1473 'group' => 'developer',
1474 'name' => 'userFrameworkLogging',
1475 'type' => 'Boolean',
1476 'quick_form_type' => 'YesNo',
1477 'default' => 0,
1478 'add' => '4.3',
1479 'title' => 'Enable Drupal Watchdog Logging',
1480 'is_domain' => 1,
1481 'is_contact' => 0,
1482 'description' => 'Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs',
1483 '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)',
cf8f0fff
CW
1484 ],
1485 'debug_enabled' => [
1d8ee3d6 1486 'group_name' => 'Developer Preferences',
1487 'group' => 'developer',
1488 'name' => 'debug_enabled',
1489 'config_key' => 'debug',
1490 'type' => 'Boolean',
1491 'quick_form_type' => 'YesNo',
1492 'default' => 0,
1493 'add' => '4.3',
1494 'title' => 'Enable Debugging',
1495 'is_domain' => 1,
1496 'is_contact' => 0,
1497 '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',
1498 'help_text' => 'Do not turn this on on production sites',
cf8f0fff
CW
1499 ],
1500 'backtrace' => [
1d8ee3d6 1501 'group_name' => 'Developer Preferences',
1502 'group' => 'developer',
1503 'name' => 'backtrace',
1504 'type' => 'Boolean',
1505 'quick_form_type' => 'YesNo',
1506 'default' => 0,
1507 'add' => '4.3',
1508 'title' => 'Display Backtrace',
1509 'is_domain' => 1,
1510 'is_contact' => 0,
1511 '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',
cf8f0fff 1512 ],
8390b11b
SL
1513 'environment' => [
1514 'group_name' => 'Developer Preferences',
1515 'group' => 'developer',
1516 'name' => 'environment',
1517 'type' => 'String',
1518 'html_type' => 'Select',
1519 'quick_form_type' => 'Select',
1520 'default' => 'Production',
1521 'pseudoconstant' => [
1522 'optionGroupName' => 'environment',
1523 ],
1524 'add' => '4.7',
1525 'title' => 'Environment',
1526 'is_domain' => 1,
1527 'is_contact' => 0,
1528 'description' => 'Setting to define the environment in which this CiviCRM instance is running.',
1529 'on_change' => [
1530 '0' => 'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
1531 ],
1532 ],
cf8f0fff 1533 'fatalErrorHandler' => [
1d8ee3d6 1534 'group_name' => 'Developer Preferences',
1535 'group' => 'developer',
1536 'name' => 'fatalErrorHandler',
1537 'type' => 'String',
1538 'quick_form_type' => 'Element',
1539 'html_type' => 'text',
1540 'default' => '',
1541 'add' => '4.3',
50fb255d 1542 'title' => 'Fatal Error Handler',
1543 'is_domain' => 1,
1544 'is_contact' => 0,
1545 '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.',
cf8f0fff
CW
1546 ],
1547 'uploadDir' => [
1d8ee3d6 1548 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1549 'group_name' => 'Directory Preferences',
1550 'group' => 'directory',
1551 'name' => 'uploadDir',
1d8ee3d6 1552 'type' => 'String',
8390b11b 1553 'html_type' => 'text',
1d8ee3d6 1554 'quick_form_type' => 'Element',
50fb255d 1555 'default' => '',
1556 'add' => '4.1',
1d8ee3d6 1557 'title' => 'Temporary Files Directory',
50fb255d 1558 'is_domain' => 1,
1559 'is_contact' => 0,
1560 'description' => '',
1d8ee3d6 1561 'help_text' => 'File system path where temporary CiviCRM files - such as import data files - are uploaded.',
cf8f0fff
CW
1562 ],
1563 'imageUploadDir' => [
1d8ee3d6 1564 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1565 'group_name' => 'Directory Preferences',
1566 'group' => 'directory',
1567 'name' => 'imageUploadDir',
1d8ee3d6 1568 'type' => 'String',
8390b11b 1569 'html_type' => 'text',
1d8ee3d6 1570 'quick_form_type' => 'Element',
50fb255d 1571 'default' => '',
1572 'add' => '4.1',
50fb255d 1573 'title' => 'Image Directory',
1574 'is_domain' => 1,
1575 'is_contact' => 0,
1d8ee3d6 1576 'description' => 'File system path where image files are uploaded. Currently, this path is used for images associated with premiums (CiviContribute thank-you gifts).',
50fb255d 1577 'help_text' => '',
cf8f0fff
CW
1578 ],
1579 'customFileUploadDir' => [
1d8ee3d6 1580 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1581 'group_name' => 'Directory Preferences',
1582 'group' => 'directory',
1583 'name' => 'customFileUploadDir',
1d8ee3d6 1584 'type' => 'String',
8390b11b 1585 'html_type' => 'text',
1d8ee3d6 1586 'quick_form_type' => 'Element',
50fb255d 1587 'default' => '',
1588 'add' => '4.1',
1d8ee3d6 1589 'title' => 'Custom Files Directory',
50fb255d 1590 'is_domain' => 1,
1591 'is_contact' => 0,
1d8ee3d6 1592 'description' => 'Path where documents and images which are attachments to contact records are stored (e.g. contact photos, resumes, contracts, etc.). These attachments are defined using \'file\' type custom fields.',
50fb255d 1593 'help_text' => '',
cf8f0fff
CW
1594 ],
1595 'customTemplateDir' => [
1d8ee3d6 1596 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1597 'group_name' => 'Directory Preferences',
1598 'group' => 'directory',
1599 'name' => 'customTemplateDir',
1d8ee3d6 1600 'type' => 'String',
8390b11b 1601 'html_type' => 'text',
1d8ee3d6 1602 'quick_form_type' => 'Element',
50fb255d 1603 'default' => '',
1604 'add' => '4.1',
50fb255d 1605 'title' => 'Custom Template Directory',
1606 'is_domain' => 1,
1607 'is_contact' => 0,
1d8ee3d6 1608 'description' => 'Path where site specific templates are stored if any. This directory is searched first if set. Custom JavaScript code can be added to templates by creating files named templateFile.extra.tpl. (learn more...)',
50fb255d 1609 'help_text' => '',
cf8f0fff
CW
1610 ],
1611 'customPHPPathDir' => [
1d8ee3d6 1612 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1613 'group_name' => 'Directory Preferences',
1614 'group' => 'directory',
1615 'name' => 'customPHPPathDir',
1d8ee3d6 1616 'type' => 'String',
8390b11b 1617 'html_type' => 'text',
1d8ee3d6 1618 'quick_form_type' => 'Element',
50fb255d 1619 'default' => '',
1620 'add' => '4.1',
1d8ee3d6 1621 'title' => 'Custom PHP Directory',
50fb255d 1622 'is_domain' => 1,
1623 'is_contact' => 0,
1d8ee3d6 1624 'description' => 'Path where site specific PHP code files are stored if any. This directory is searched first if set.',
50fb255d 1625 'help_text' => '',
cf8f0fff
CW
1626 ],
1627 'extensionsDir' => [
1d8ee3d6 1628 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 1629 'group_name' => 'Directory Preferences',
1630 'group' => 'directory',
1631 'name' => 'extensionsDir',
1d8ee3d6 1632 'type' => 'String',
8390b11b 1633 'html_type' => 'text',
1d8ee3d6 1634 'quick_form_type' => 'Element',
50fb255d 1635 'default' => '',
1636 'add' => '4.1',
50fb255d 1637 'title' => 'Extensions Directory',
1638 'is_domain' => 1,
1639 'is_contact' => 0,
1d8ee3d6 1640 'description' => 'Path where CiviCRM extensions are stored.',
50fb255d 1641 'help_text' => '',
cf8f0fff
CW
1642 ],
1643 'enable_cart' => [
50fb255d 1644 'name' => 'enable_cart',
1645 'group_name' => 'Event Preferences',
8390b11b
SL
1646 'settings_pages' => [
1647 'event' => [
1648 'weight' => 10,
1649 ],
1650 ],
50fb255d 1651 'group' => 'event',
1d8ee3d6 1652 'type' => 'Boolean',
8390b11b 1653 'quick_form_type' => 'CheckBox',
50fb255d 1654 'default' => 0,
1655 'add' => '4.1',
8390b11b 1656 'title' => 'Use Shopping Cart Style Event Registration',
50fb255d 1657 'is_domain' => 1,
1d8ee3d6 1658 'is_contact' => 0,
8390b11b
SL
1659 'description' => 'This feature allows users to register for more than one event at a time. When enabled, users will add event(s) to a \"cart\" and then pay for them all at once. Enabling this setting will affect online registration for all active events. The code is an alpha state, and you will potentially need to have developer resources to debug and fix sections of the codebase while testing and deploying it',
1660 'help_text' => '',
1661 'documentation_link' => [
1662 'page' => 'CiviEvent Cart Checkout',
1663 'resource' => 'wiki',
1664 ],
cf8f0fff
CW
1665 ],
1666 'show_events' => [
1d8ee3d6 1667 'name' => 'show_events',
1668 'group_name' => 'Event Preferences',
1669 'group' => 'event',
8390b11b
SL
1670 'settings_pages' => [
1671 'event' => [
1672 'weight' => 20,
1673 ],
1674 ],
1d8ee3d6 1675 'type' => 'Integer',
8390b11b 1676 'quick_form_type' => 'Select',
1d8ee3d6 1677 'default' => 10,
1678 'add' => '4.5',
1679 'title' => 'Dashboard entries',
1680 'html_type' => 'select',
1681 'is_domain' => 1,
1682 'is_contact' => 0,
1683 'description' => 'Configure how many events should be shown on the dashboard. This overrides the default value of 10 entries.',
1684 'help_text' => '',
8390b11b
SL
1685 'pseudoconstant' => [
1686 'callback' => 'CRM_Core_SelectValues::getDashboardEntriesCount',
1687 ],
cf8f0fff
CW
1688 ],
1689 'ext_repo_url' => [
1d8ee3d6 1690 'group_name' => 'Extension Preferences',
1691 'group' => 'ext',
1692 'name' => 'ext_repo_url',
1693 'type' => 'String',
1694 'quick_form_type' => 'Element',
cf8f0fff 1695 'html_attributes' => [
1d8ee3d6 1696 'size' => 64,
1697 'maxlength' => 128,
cf8f0fff 1698 ],
8390b11b 1699 'html_type' => 'text',
1d8ee3d6 1700 'default' => 'https://civicrm.org/extdir/ver={ver}|cms={uf}',
1701 'add' => '4.3',
1702 'title' => 'Extension Repo URL',
1703 'is_domain' => 1,
1704 'is_contact' => 0,
1705 'description' => '',
1706 'help_text' => '',
cf8f0fff
CW
1707 ],
1708 'customTranslateFunction' => [
1d8ee3d6 1709 'add' => '4.7',
1710 'help_text' => '',
1711 'is_domain' => 1,
1712 'is_contact' => 0,
1713 'group_name' => 'Localization Preferences',
1714 'group' => 'localization',
1715 'name' => 'customTranslateFunction',
1716 'type' => 'String',
1717 'quick_form_type' => 'Element',
1718 'html_type' => 'text',
cf8f0fff 1719 'html_attributes' => [
1d8ee3d6 1720 'size' => '30',
1721 'maxlength' => '100',
cf8f0fff 1722 ],
1d8ee3d6 1723 'default' => '',
1724 'title' => 'Custom Translate Function',
1725 'description' => '',
cf8f0fff
CW
1726 ],
1727 'monetaryThousandSeparator' => [
50fb255d 1728 'group_name' => 'Localization Preferences',
1729 'group' => 'localization',
1730 'name' => 'monetaryThousandSeparator',
50fb255d 1731 'type' => 'String',
1732 'quick_form_type' => 'Element',
1733 'html_type' => 'text',
cf8f0fff 1734 'html_attributes' => [
50fb255d 1735 'size' => 2,
cf8f0fff 1736 ],
50fb255d 1737 'default' => ',',
1738 'add' => '4.3',
1739 'title' => 'Thousands Separator',
1740 'is_domain' => 1,
1741 'is_contact' => 0,
1742 'description' => '',
1743 'help_text' => '',
cf8f0fff
CW
1744 ],
1745 'monetaryDecimalPoint' => [
50fb255d 1746 'group_name' => 'Localization Preferences',
1747 'group' => 'localization',
1748 'name' => 'monetaryDecimalPoint',
50fb255d 1749 'type' => 'String',
1750 'quick_form_type' => 'Element',
1751 'html_type' => 'text',
cf8f0fff 1752 'html_attributes' => [
50fb255d 1753 'size' => 2,
cf8f0fff 1754 ],
50fb255d 1755 'default' => '.',
1756 'add' => '4.3',
1757 'title' => 'Decimal Delimiter',
1758 'is_domain' => 1,
1759 'is_contact' => 0,
1760 'description' => '',
1761 'help_text' => '',
cf8f0fff
CW
1762 ],
1763 'moneyformat' => [
50fb255d 1764 'group_name' => 'Localization Preferences',
1765 'group' => 'localization',
1766 'name' => 'moneyformat',
50fb255d 1767 'type' => 'String',
1768 'quick_form_type' => 'Element',
1769 'html_type' => 'text',
1770 'default' => '%c %a',
1771 'add' => '4.3',
1772 'title' => 'Monetary Amount Display',
1773 'is_domain' => 1,
1774 'is_contact' => 0,
1775 'description' => '',
1776 'help_text' => '',
cf8f0fff
CW
1777 ],
1778 'moneyvalueformat' => [
50fb255d 1779 'group_name' => 'Localization Preferences',
1780 'group' => 'localization',
1781 'name' => 'moneyvalueformat',
50fb255d 1782 'type' => 'String',
1783 'quick_form_type' => 'Element',
1784 'html_type' => 'text',
1785 'default' => '%!i',
1786 'add' => '4.3',
1d8ee3d6 1787 'title' => 'Monetary Value Display',
50fb255d 1788 'is_domain' => 1,
1789 'is_contact' => 0,
1790 'description' => '',
1791 'help_text' => '',
cf8f0fff
CW
1792 ],
1793 'defaultCurrency' => [
50fb255d 1794 'group_name' => 'Localization Preferences',
1795 'group' => 'localization',
1796 'name' => 'defaultCurrency',
50fb255d 1797 'type' => 'String',
1d8ee3d6 1798 'quick_form_type' => 'Select',
1799 'html_type' => 'Select',
cf8f0fff 1800 'html_attributes' => [
1d8ee3d6 1801 'class' => 'crm-select2',
cf8f0fff 1802 ],
50fb255d 1803 'default' => 'USD',
1804 'add' => '4.3',
1805 'title' => 'Default Currency',
1806 'is_domain' => 1,
1807 'is_contact' => 0,
1808 'description' => 'Default currency assigned to contributions and other monetary transactions.',
1809 'help_text' => '',
cf8f0fff 1810 'pseudoconstant' => [
1d8ee3d6 1811 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
cf8f0fff
CW
1812 ],
1813 'on_change' => [
798358d0 1814 '0' => 'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
cf8f0fff
CW
1815 ],
1816 ],
1817 'defaultContactCountry' => [
50fb255d 1818 'group_name' => 'Localization Preferences',
1819 'group' => 'localization',
1820 'name' => 'defaultContactCountry',
50fb255d 1821 'type' => 'String',
1d8ee3d6 1822 'quick_form_type' => 'Select',
1823 'html_type' => 'Select',
cf8f0fff 1824 'html_attributes' => [],
50fb255d 1825 'add' => '4.4',
1826 'title' => 'Default Country',
1827 'is_domain' => 1,
1828 'is_contact' => 0,
8390b11b 1829 'is_required' => '',
50fb255d 1830 'description' => 'This value is selected by default when adding a new contact address.',
1831 'help_text' => '',
cf8f0fff 1832 'pseudoconstant' => [
1d8ee3d6 1833 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
cf8f0fff
CW
1834 ],
1835 ],
1836 'defaultContactStateProvince' => [
1d8ee3d6 1837 'add' => '4.7',
1838 'help_text' => '',
1839 'is_domain' => 1,
1840 'is_contact' => 0,
1841 'group_name' => 'Localization Preferences',
1842 'group' => 'localization',
1843 'name' => 'defaultContactStateProvince',
1844 'type' => 'Integer',
1845 'quick_form_type' => 'ChainSelect',
1846 'html_type' => 'ChainSelect',
1847 'default' => '',
1848 'title' => 'Default State/Province',
1849 'description' => 'This value is selected by default when adding a new contact address.',
cf8f0fff
CW
1850 ],
1851 'countryLimit' => [
50fb255d 1852 'group_name' => 'Localization Preferences',
1853 'group' => 'localization',
1854 'name' => 'countryLimit',
50fb255d 1855 'type' => 'Array',
1856 'quick_form_type' => 'Element',
1857 'html_type' => 'advmultiselect',
cf8f0fff 1858 'html_attributes' => [
50fb255d 1859 'size' => 5,
1860 'style' => 'width:150px',
1861 'class' => 'advmultiselect',
cf8f0fff
CW
1862 ],
1863 'default' => [],
50fb255d 1864 'add' => '4.3',
1865 'title' => 'Available Countries',
1866 'is_domain' => 1,
1867 'is_contact' => 0,
1868 'description' => '',
1869 'help_text' => '',
cf8f0fff 1870 'pseudoconstant' => [
1d8ee3d6 1871 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
cf8f0fff
CW
1872 ],
1873 ],
1874 'provinceLimit' => [
50fb255d 1875 'group_name' => 'Localization Preferences',
1876 'group' => 'localization',
1877 'name' => 'provinceLimit',
50fb255d 1878 'type' => 'Array',
1879 'quick_form_type' => 'Element',
1880 'html_type' => 'advmultiselect',
cf8f0fff 1881 'html_attributes' => [
50fb255d 1882 'size' => 5,
1883 'style' => 'width:150px',
1884 'class' => 'advmultiselect',
cf8f0fff
CW
1885 ],
1886 'default' => [],
50fb255d 1887 'add' => '4.3',
1d8ee3d6 1888 'title' => 'Available States and Provinces (by Country)',
50fb255d 1889 'is_domain' => 1,
1890 'is_contact' => 0,
1891 'description' => '',
1892 'help_text' => '',
cf8f0fff 1893 'pseudoconstant' => [
1d8ee3d6 1894 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
cf8f0fff
CW
1895 ],
1896 ],
1897 'inheritLocale' => [
50fb255d 1898 'group_name' => 'Localization Preferences',
1899 'group' => 'localization',
1900 'name' => 'inheritLocale',
50fb255d 1901 'type' => 'Boolean',
1902 'quick_form_type' => 'YesNo',
1903 'default' => 0,
1904 'add' => '4.3',
1905 'title' => 'Inherit CMS Language',
1906 'is_domain' => 1,
1907 'is_contact' => 0,
1908 'description' => '',
1909 'help_text' => '',
cf8f0fff
CW
1910 ],
1911 'dateformatDatetime' => [
50fb255d 1912 'group_name' => 'Localization Preferences',
1913 'group' => 'localization',
1914 'name' => 'dateformatDatetime',
50fb255d 1915 'type' => 'String',
1d8ee3d6 1916 'quick_form_type' => 'Element',
1917 'html_type' => 'text',
50fb255d 1918 'default' => '%B %E%f, %Y %l:%M %P',
1919 'add' => '4.3',
1d8ee3d6 1920 'title' => 'Date Format: Complete Date and Time',
50fb255d 1921 'is_domain' => 1,
1922 'is_contact' => 0,
1923 'description' => '',
1924 'help_text' => '',
cf8f0fff
CW
1925 ],
1926 'dateformatFull' => [
50fb255d 1927 'group_name' => 'Localization Preferences',
1928 'group' => 'localization',
1929 'name' => 'dateformatFull',
50fb255d 1930 'type' => 'String',
1d8ee3d6 1931 'quick_form_type' => 'Element',
1932 'html_type' => 'text',
50fb255d 1933 'default' => '%B %E%f, %Y',
1934 'add' => '4.3',
1d8ee3d6 1935 'title' => 'Date Format: Complete Date',
50fb255d 1936 'is_domain' => 1,
1937 'is_contact' => 0,
1938 'description' => '',
1939 'help_text' => '',
cf8f0fff
CW
1940 ],
1941 'dateformatPartial' => [
50fb255d 1942 'group_name' => 'Localization Preferences',
1943 'group' => 'localization',
1944 'name' => 'dateformatPartial',
50fb255d 1945 'type' => 'String',
1d8ee3d6 1946 'quick_form_type' => 'Element',
1947 'html_type' => 'text',
50fb255d 1948 'default' => '%B %Y',
1949 'add' => '4.3',
1d8ee3d6 1950 'title' => 'Date Format: Month and Year',
1951 'is_domain' => 1,
1952 'is_contact' => 0,
1953 'description' => '',
1954 'help_text' => '',
cf8f0fff
CW
1955 ],
1956 'dateformatTime' => [
1d8ee3d6 1957 'add' => '4.7',
1958 'help_text' => '',
1959 'is_domain' => 1,
1960 'is_contact' => 0,
1961 'group_name' => 'Localization Preferences',
1962 'group' => 'localization',
1963 'name' => 'dateformatTime',
1964 'type' => 'String',
1965 'quick_form_type' => 'Element',
1966 'html_type' => 'text',
cf8f0fff 1967 'html_attributes' => [
1d8ee3d6 1968 'size' => '12',
1969 'maxlength' => '60',
cf8f0fff 1970 ],
1d8ee3d6 1971 'default' => '%l:%M %P',
1972 'title' => 'Date Format: Time Only',
1973 'description' => '',
cf8f0fff
CW
1974 ],
1975 'dateformatYear' => [
1d8ee3d6 1976 'add' => '4.7',
1977 'help_text' => '',
1978 'is_domain' => 1,
1979 'is_contact' => 0,
1980 'group_name' => 'Localization Preferences',
1981 'group' => 'localization',
1982 'name' => 'dateformatYear',
1983 'type' => 'String',
1984 'quick_form_type' => 'Element',
1985 'html_type' => 'text',
cf8f0fff 1986 'html_attributes' => [
1d8ee3d6 1987 'size' => '12',
1988 'maxlength' => '60',
cf8f0fff 1989 ],
1d8ee3d6 1990 'default' => '%Y',
1991 'title' => 'Date Format: Year Only',
1992 'description' => '',
cf8f0fff
CW
1993 ],
1994 'dateformatFinancialBatch' => [
1d8ee3d6 1995 'add' => '4.7',
1996 'help_text' => '',
50fb255d 1997 'is_domain' => 1,
1998 'is_contact' => 0,
1d8ee3d6 1999 'group_name' => 'Localization Preferences',
2000 'group' => 'localization',
2001 'name' => 'dateformatFinancialBatch',
2002 'type' => 'String',
2003 'quick_form_type' => 'Element',
2004 'html_type' => 'text',
cf8f0fff 2005 'html_attributes' => [
1d8ee3d6 2006 'size' => '12',
2007 'maxlength' => '60',
cf8f0fff 2008 ],
1d8ee3d6 2009 'default' => '%m/%d/%Y',
2010 'title' => 'Date Format: Financial Batch',
50fb255d 2011 'description' => '',
cf8f0fff
CW
2012 ],
2013 'dateformatshortdate' => [
1d8ee3d6 2014 'add' => '4.7',
50fb255d 2015 'help_text' => '',
1d8ee3d6 2016 'is_domain' => 1,
2017 'is_contact' => 0,
2018 'group_name' => 'Localization Preferences',
2019 'group' => 'localization',
2020 'name' => 'dateformatshortdate',
2021 'type' => 'String',
2022 'quick_form_type' => 'Element',
2023 'html_type' => 'text',
cf8f0fff 2024 'html_attributes' => [
1d8ee3d6 2025 'size' => '12',
2026 'maxlength' => '60',
cf8f0fff 2027 ],
1d8ee3d6 2028 'default' => '%m/%d/%Y',
2029 'title' => 'Date Format: Short date Month Day Year',
2030 'description' => '',
cf8f0fff
CW
2031 ],
2032 'dateInputFormat' => [
1d8ee3d6 2033 'add' => '4.7',
2034 'help_text' => '',
2035 'is_domain' => 1,
2036 'is_contact' => 0,
2037 'group_name' => 'Localization Preferences',
2038 'group' => 'localization',
2039 'name' => 'dateInputFormat',
2040 'type' => 'String',
2041 'quick_form_type' => 'Select',
2042 'html_type' => 'Select',
cf8f0fff 2043 'pseudoconstant' => [
1d8ee3d6 2044 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
cf8f0fff 2045 ],
1d8ee3d6 2046 'default' => 'mm/dd/yy',
2047 'title' => 'Date Input Format',
2048 'description' => '',
cf8f0fff
CW
2049 ],
2050 'fieldSeparator' => [
1d8ee3d6 2051 'add' => '4.7',
2052 'help_text' => '',
2053 'is_domain' => 1,
2054 'is_contact' => 0,
2055 'group_name' => 'Localization Preferences',
2056 'group' => 'localization',
2057 'name' => 'fieldSeparator',
2058 'type' => 'String',
2059 'quick_form_type' => 'Element',
2060 'html_type' => 'text',
cf8f0fff 2061 'html_attributes' => [
1d8ee3d6 2062 'size' => '2',
2063 'maxlength' => '8',
cf8f0fff 2064 ],
1d8ee3d6 2065 'default' => ',',
2066 'title' => 'Import / Export Field Separator',
2067 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
cf8f0fff
CW
2068 ],
2069 'fiscalYearStart' => [
1d8ee3d6 2070 'add' => '4.7',
2071 'help_text' => '',
2072 'is_domain' => 1,
2073 'is_contact' => 0,
2074 'group_name' => 'Localization Preferences',
2075 'group' => 'localization',
2076 'name' => 'fiscalYearStart',
2077 'type' => 'Array',
2078 'quick_form_type' => 'MonthDay',
2079 'html_type' => 'MonthDay',
cf8f0fff 2080 'default' => [
1d8ee3d6 2081 'M' => 1,
2082 'd' => 1,
cf8f0fff 2083 ],
1d8ee3d6 2084 'title' => 'Fiscal Year Start',
2085 'description' => '',
cf8f0fff
CW
2086 ],
2087 'languageLimit' => [
1d8ee3d6 2088 'group_name' => 'Localization Preferences',
2089 'group' => 'localization',
2090 'name' => 'languageLimit',
2091 'type' => 'Array',
2092 'quick_form_type' => 'Select',
2093 'html_type' => 'Select',
cf8f0fff 2094 'html_attributes' => [
1d8ee3d6 2095 'multiple' => 1,
2096 'class' => 'crm-select2',
cf8f0fff 2097 ],
1d8ee3d6 2098 'default' => '',
2099 'add' => '4.3',
2100 'title' => 'Available Languages (Multi-lingual)',
2101 'is_domain' => 1,
2102 'is_contact' => 0,
2103 'description' => '',
2104 'help_text' => '',
cf8f0fff 2105 'pseudoconstant' => [
1d8ee3d6 2106 'callback' => 'CRM_Core_I18n::languages',
cf8f0fff
CW
2107 ],
2108 ],
8390b11b
SL
2109 'uiLanguages' => [
2110 'group_name' => 'Localization Preferences',
2111 'group' => 'localization',
2112 'name' => 'uiLanguages',
2113 'type' => 'Array',
2114 'quick_form_type' => 'Select',
2115 'html_type' => 'select',
2116 'html_attributes' => [
2117 'multiple' => 1,
2118 'class' => 'crm-select2',
2119 ],
2120 'default' => '',
2121 'add' => '5.9',
2122 'title' => 'Available Languages',
2123 'is_domain' => 1,
2124 'is_contact' => 0,
2125 'description' => '',
2126 'help_text' => 'User Interface languages available to users',
2127 'pseudoconstant' => [
2128 'callback' => 'CRM_Core_I18n::languages',
2129 ],
2130 ],
cf8f0fff 2131 'lcMessages' => [
50fb255d 2132 'group_name' => 'Localization Preferences',
2133 'group' => 'localization',
2134 'name' => 'lcMessages',
50fb255d 2135 'type' => 'String',
1d8ee3d6 2136 'quick_form_type' => 'Select',
2137 'html_type' => 'Select',
cf8f0fff 2138 'html_attributes' => [
1d8ee3d6 2139 'class' => 'crm-select2',
cf8f0fff 2140 ],
50fb255d 2141 'default' => 'en_US',
2142 'add' => '4.3',
2143 'title' => 'Default Language',
2144 'is_domain' => 1,
2145 'is_contact' => 0,
1d8ee3d6 2146 'description' => '',
2147 'help_text' => '',
cf8f0fff 2148 'pseudoconstant' => [
1d8ee3d6 2149 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
cf8f0fff
CW
2150 ],
2151 'on_change' => [
1d8ee3d6 2152 '0' => 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
cf8f0fff
CW
2153 ],
2154 ],
2155 'legacyEncoding' => [
1d8ee3d6 2156 'add' => '4.7',
2157 'help_text' => '',
2158 'is_domain' => 1,
2159 'is_contact' => 0,
2160 'group_name' => 'Localization Preferences',
2161 'group' => 'localization',
2162 'name' => 'legacyEncoding',
2163 'type' => 'String',
2164 'quick_form_type' => 'Element',
2165 'html_type' => 'text',
cf8f0fff 2166 'html_attributes' => [
1d8ee3d6 2167 'size' => '12',
2168 'maxlength' => '30',
cf8f0fff 2169 ],
1d8ee3d6 2170 'default' => 'Windows-1252',
2171 'title' => 'Legacy Encoding',
2172 'description' => 'If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of Windows-1252 will work for Excel-created .CSV files on many computers.',
cf8f0fff
CW
2173 ],
2174 'timeInputFormat' => [
1d8ee3d6 2175 'add' => '4.7',
2176 'help_text' => '',
2177 'is_domain' => 1,
2178 'is_contact' => 0,
2179 'group_name' => 'Localization Preferences',
2180 'group' => 'localization',
2181 'name' => 'timeInputFormat',
2182 'type' => 'String',
2183 'quick_form_type' => 'Select',
2184 'html_type' => 'Select',
cf8f0fff 2185 'pseudoconstant' => [
1d8ee3d6 2186 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
cf8f0fff 2187 ],
1d8ee3d6 2188 'default' => '1',
2189 'title' => 'Time Input Format',
2190 'description' => '',
cf8f0fff 2191 'on_change' => [
1d8ee3d6 2192 '0' => 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
cf8f0fff
CW
2193 ],
2194 ],
2195 'weekBegins' => [
1d8ee3d6 2196 'group_name' => 'Localization Preferences',
2197 'group' => 'localization',
2198 'name' => 'weekBegins',
2199 'type' => 'String',
2200 'quick_form_type' => 'Select',
2201 'html_type' => 'Select',
cf8f0fff 2202 'pseudoconstant' => [
1d8ee3d6 2203 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
cf8f0fff 2204 ],
1d8ee3d6 2205 'default' => 0,
2206 'add' => '4.7',
2207 'title' => 'Week begins on',
2208 'is_domain' => 1,
2209 'is_contact' => 0,
2210 'description' => '',
2211 'help_text' => '',
cf8f0fff
CW
2212 ],
2213 'contact_default_language' => [
1d8ee3d6 2214 'group_name' => 'Localization Preferences',
2215 'group' => 'localization',
2216 'name' => 'contact_default_language',
2217 'type' => 'String',
2218 'quick_form_type' => 'Select',
2219 'html_type' => 'Select',
cf8f0fff 2220 'html_attributes' => [
1d8ee3d6 2221 'class' => 'crm-select2',
cf8f0fff
CW
2222 ],
2223 'pseudoconstant' => [
1d8ee3d6 2224 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
cf8f0fff 2225 ],
1d8ee3d6 2226 'default' => '*default*',
2227 'add' => '4.7',
2228 'title' => 'Default Language for contacts',
2229 'is_domain' => 1,
2230 'is_contact' => 0,
2231 'description' => 'Default language (if any) for contact records',
2232 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.You may or may not wish to make an assumption here about whether it matches the site language',
cf8f0fff
CW
2233 ],
2234 'profile_double_optin' => [
50fb255d 2235 'group_name' => 'Mailing Preferences',
2236 'group' => 'mailing',
2237 'name' => 'profile_double_optin',
8390b11b 2238 'type' => 'Boolean',
50fb255d 2239 'html_type' => 'checkbox',
1d8ee3d6 2240 'default' => '1',
50fb255d 2241 'add' => '4.1',
2242 'title' => 'Enable Double Opt-in for Profile Group(s) field',
2243 'is_domain' => 1,
2244 'is_contact' => 0,
2245 'description' => 'When CiviMail is enabled, users who \"subscribe\" to a group from a profile Group(s) checkbox will receive a confirmation email. They must respond (opt-in) before they are added to the group.',
2246 'help_text' => '',
cf8f0fff
CW
2247 ],
2248 'track_civimail_replies' => [
50fb255d 2249 'group_name' => 'Mailing Preferences',
2250 'group' => 'mailing',
2251 'name' => 'track_civimail_replies',
8390b11b 2252 'type' => 'Boolean',
50fb255d 2253 'html_type' => 'checkbox',
2254 'default' => 0,
2255 'add' => '4.1',
5c49fee0 2256 'title' => 'Track replies using VERP in Reply-To header',
50fb255d 2257 'is_domain' => 1,
2258 'is_contact' => 0,
5c49fee0 2259 'description' => 'If checked, mailings will default to tracking replies using VERP-ed Reply-To. ',
50fb255d 2260 'help_text' => '',
2261 'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
cf8f0fff
CW
2262 ],
2263 'civimail_workflow' => [
50fb255d 2264 'group_name' => 'Mailing Preferences',
2265 'group' => 'mailing',
2266 'name' => 'civimail_workflow',
8390b11b 2267 'type' => 'Boolean',
50fb255d 2268 'html_type' => 'checkbox',
2269 'default' => 0,
2270 'add' => '4.1',
8390b11b 2271 'title' => 'Enable workflow support for CiviMail',
50fb255d 2272 'is_domain' => 1,
2273 'is_contact' => 0,
8390b11b 2274 'description' => 'Drupal-only. Rules module must be enabled (beta feature - use with caution).',
50fb255d 2275 'help_text' => '',
cf8f0fff
CW
2276 ],
2277 'civimail_server_wide_lock' => [
50fb255d 2278 'group_name' => 'Mailing Preferences',
2279 'group' => 'mailing',
2280 'name' => 'civimail_server_wide_lock',
8390b11b 2281 'type' => 'Boolean',
50fb255d 2282 'html_type' => 'checkbox',
2283 'default' => 0,
2284 'add' => '4.1',
8390b11b 2285 'title' => 'Enable global server wide lock for CiviMail',
50fb255d 2286 'is_domain' => 1,
2287 'is_contact' => 0,
2288 'description' => '',
2289 'help_text' => '',
cf8f0fff
CW
2290 ],
2291 'replyTo' => [
1d8ee3d6 2292 'group_name' => 'Mailing Preferences',
2293 'group' => 'mailing',
2294 'name' => 'replyTo',
2295 'type' => 'Boolean',
2296 'quick_form_type' => 'YesNo',
2297 'default' => 0,
2298 'add' => '4.6',
2299 'title' => 'Enable Custom Reply-To',
2300 'is_domain' => 1,
2301 'is_contact' => 0,
2302 'description' => 'Allow CiviMail users to send mailings with a custom Reply-To header',
2303 'help_text' => '',
cf8f0fff
CW
2304 ],
2305 'mailing_backend' => [
50fb255d 2306 'group_name' => 'Mailing Preferences',
2307 'group' => 'mailing',
2308 'name' => 'mailing_backend',
2309 'type' => 'Array',
2310 'html_type' => 'checkbox',
cf8f0fff 2311 'default' => [
1d8ee3d6 2312 'outBound_option' => '3',
cf8f0fff 2313 ],
50fb255d 2314 'add' => '4.1',
2315 'title' => 'Mailing Backend',
2316 'is_domain' => 1,
2317 'is_contact' => 0,
2318 'description' => '',
2319 'help_text' => '',
cf8f0fff
CW
2320 ],
2321 'profile_add_to_group_double_optin' => [
50fb255d 2322 'group_name' => 'Mailing Preferences',
2323 'group' => 'mailing',
2324 'name' => 'profile_add_to_group_double_optin',
8390b11b 2325 'type' => 'Boolean',
50fb255d 2326 'html_type' => 'checkbox',
2327 'default' => 0,
2328 'add' => '4.1',
8390b11b 2329 'title' => 'Enable Double Opt-in for Profiles which use the \"Add to Group\" setting',
50fb255d 2330 'is_domain' => 1,
2331 'is_contact' => 0,
8390b11b 2332 'description' => 'When CiviMail is enabled and a profile uses the \"Add to Group\" setting, users who complete the profile form will receive a confirmation email. They must respond (opt-in) before they are added to the group.',
50fb255d 2333 'help_text' => '',
cf8f0fff
CW
2334 ],
2335 'disable_mandatory_tokens_check' => [
50fb255d 2336 'group_name' => 'Mailing Preferences',
2337 'group' => 'mailing',
2338 'name' => 'disable_mandatory_tokens_check',
8390b11b 2339 'type' => 'Boolean',
50fb255d 2340 'html_type' => 'checkbox',
2341 'default' => 0,
2342 'add' => '4.4',
2343 'title' => 'Disable check for mandatory tokens',
2344 'is_domain' => 1,
2345 'is_contact' => 0,
2346 'description' => 'Don\'t check for presence of mandatory tokens (domain address; unsubscribe/opt-out) before sending mailings. WARNING: Mandatory tokens are a safe-guard which facilitate compliance with the US CAN-SPAM Act. They should only be disabled if your organization adopts other mechanisms for compliance or if your organization is not subject to CAN-SPAM.',
2347 'help_text' => '',
cf8f0fff
CW
2348 ],
2349 'dedupe_email_default' => [
50fb255d 2350 'group_name' => 'Mailing Preferences',
2351 'group' => 'mailing',
2352 'name' => 'dedupe_email_default',
8390b11b 2353 'type' => 'Boolean',
50fb255d 2354 'html_type' => 'checkbox',
2355 'default' => 1,
2356 'add' => '4.5',
2357 'title' => 'CiviMail dedupes e-mail addresses by default',
2358 'is_domain' => 1,
2359 'is_contact' => 0,
2360 'description' => 'Set the \"dedupe e-mail\" option when sending a new mailing to \"true\" by default.',
2361 'help_text' => '',
cf8f0fff
CW
2362 ],
2363 'hash_mailing_url' => [
50fb255d 2364 'group_name' => 'Mailing Preferences',
2365 'group' => 'mailing',
2366 'name' => 'hash_mailing_url',
8390b11b 2367 'type' => 'Boolean',
50fb255d 2368 'html_type' => 'checkbox',
2369 'default' => 0,
2370 'add' => '4.5',
2371 'title' => 'Hashed Mailing URL\'s',
2372 'is_domain' => 1,
2373 'is_contact' => 0,
2374 'description' => 'If enabled, a randomized hash key will be used to reference the mailing URL in the mailing.viewUrl token, instead of the mailing ID',
2375 'help_text' => '',
cf8f0fff
CW
2376 ],
2377 'civimail_multiple_bulk_emails' => [
1d8ee3d6 2378 'group_name' => 'Mailing Preferences',
2379 'group' => 'mailing',
2380 'name' => 'civimail_multiple_bulk_emails',
8390b11b 2381 'type' => 'Boolean',
1d8ee3d6 2382 'html_type' => 'checkbox',
2383 'default' => 0,
2384 'add' => '4.5',
8390b11b 2385 'title' => 'Enable multiple bulk email address for a contact.',
1d8ee3d6 2386 'is_domain' => 1,
2387 'is_contact' => 0,
8390b11b 2388 'description' => 'CiviMail will deliver a copy of the email to each bulk email listed for the contact. Enabling this setting will also change the options for the \"Email on Hold\" field in Advanced Search.',
1d8ee3d6 2389 'help_text' => '',
cf8f0fff
CW
2390 ],
2391 'include_message_id' => [
1d8ee3d6 2392 'group_name' => 'Mailing Preferences',
2393 'group' => 'mailing',
2394 'name' => 'include_message_id',
8390b11b 2395 'type' => 'Boolean',
1d8ee3d6 2396 'html_type' => 'checkbox',
2397 'default' => '',
2398 'add' => '4.5',
2399 'title' => 'Enable CiviMail to generate Message-ID header',
2400 'is_domain' => 1,
2401 'is_contact' => 0,
2402 'description' => '',
2403 'help_text' => '',
cf8f0fff
CW
2404 ],
2405 'mailerBatchLimit' => [
1d8ee3d6 2406 'group_name' => 'Mailing Preferences',
2407 'group' => 'mailing',
2408 'name' => 'mailerBatchLimit',
2409 'type' => 'Integer',
2410 'quick_form_type' => 'Element',
2411 'html_type' => 'text',
cf8f0fff 2412 'html_attributes' => [
1d8ee3d6 2413 'size' => 4,
2414 'maxlength' => 8,
cf8f0fff 2415 ],
1d8ee3d6 2416 'default' => 0,
2417 'add' => '4.7',
2418 'title' => 'Mailer Batch Limit',
2419 'is_domain' => 1,
2420 'is_contact' => 0,
2421 'description' => 'Throttle email delivery by setting the maximum number of emails sent during each CiviMail run (0 = unlimited).',
2422 'help_text' => '',
cf8f0fff
CW
2423 ],
2424 'mailerJobSize' => [
1d8ee3d6 2425 'group_name' => 'Mailing Preferences',
2426 'group' => 'mailing',
2427 'name' => 'mailerJobSize',
2428 'type' => 'Integer',
2429 'quick_form_type' => 'Element',
2430 'html_type' => 'text',
cf8f0fff 2431 'html_attributes' => [
1d8ee3d6 2432 'size' => 4,
2433 'maxlength' => 8,
cf8f0fff 2434 ],
1d8ee3d6 2435 'default' => 0,
2436 'add' => '4.7',
2437 'title' => 'Mailer Job Size',
2438 'is_domain' => 1,
2439 'is_contact' => 0,
2440 'description' => 'If you want to utilize multi-threading enter the size you want your sub jobs to be split into. Recommended values are between 1,000 and 10,000. Use a lower value if your server has multiple cron jobs running simultaneously, but do not use values smaller than 1,000. Enter \"0\" to disable multi-threading and process mail as one single job - batch limits still apply.',
2441 'help_text' => '',
cf8f0fff
CW
2442 ],
2443 'mailerJobsMax' => [
1d8ee3d6 2444 'group_name' => 'Mailing Preferences',
2445 'group' => 'mailing',
2446 'name' => 'mailerJobsMax',
2447 'type' => 'Integer',
2448 'quick_form_type' => 'Element',
2449 'html_type' => 'text',
cf8f0fff 2450 'html_attributes' => [
1d8ee3d6 2451 'size' => 4,
2452 'maxlength' => 8,
cf8f0fff 2453 ],
1d8ee3d6 2454 'default' => 0,
2455 'add' => '4.7',
2456 'title' => 'Mailer Cron Job Limit',
2457 'is_domain' => 1,
2458 'is_contact' => 0,
2459 'description' => 'The maximum number of mailer delivery jobs executing simultaneously (0 = allow as many processes to execute as started by cron)',
2460 'help_text' => '',
cf8f0fff
CW
2461 ],
2462 'mailThrottleTime' => [
1d8ee3d6 2463 'group_name' => 'Mailing Preferences',
2464 'group' => 'mailing',
2465 'name' => 'mailThrottleTime',
2466 'type' => 'Integer',
2467 'quick_form_type' => 'Element',
2468 'html_type' => 'text',
cf8f0fff 2469 'html_attributes' => [
1d8ee3d6 2470 'size' => 4,
2471 'maxlength' => 8,
cf8f0fff 2472 ],
1d8ee3d6 2473 'default' => 0,
2474 'add' => '4.7',
2475 'title' => 'Mailer Throttle Time',
2476 'is_domain' => 1,
2477 'is_contact' => 0,
2478 'description' => 'The time to sleep in between each e-mail in micro seconds. Setting this above 0 allows you to control the rate at which e-mail messages are sent to the mail server, avoiding filling up the mail queue very quickly. Set to 0 to disable.',
2479 'help_text' => '',
cf8f0fff
CW
2480 ],
2481 'verpSeparator' => [
1d8ee3d6 2482 'group_name' => 'Mailing Preferences',
2483 'group' => 'mailing',
2484 'name' => 'verpSeparator',
2485 'type' => 'String',
2486 'quick_form_type' => 'Element',
2487 'html_type' => 'text',
cf8f0fff 2488 'html_attributes' => [
1d8ee3d6 2489 'size' => 4,
2490 'maxlength' => 32,
cf8f0fff 2491 ],
1d8ee3d6 2492 'default' => '.',
2493 'add' => '4.7',
2494 'title' => 'VERP Separator',
2495 'is_domain' => 1,
2496 'is_contact' => 0,
2497 'description' => 'Separator character used when CiviMail generates VERP (variable envelope return path) Mail-From addresses.',
2498 'help_text' => '',
cf8f0fff
CW
2499 ],
2500 'write_activity_record' => [
1d8ee3d6 2501 'group_name' => 'Mailing Preferences',
2502 'group' => 'mailing',
2503 'name' => 'write_activity_record',
2504 'type' => 'Boolean',
8390b11b
SL
2505 'html_type' => 'checkbox',
2506 'quick_form_type' => 'CheckBox',
1d8ee3d6 2507 'default' => '1',
2508 'add' => '4.7',
2509 'title' => 'Enable CiviMail to create activities on delivery',
2510 'is_domain' => 1,
2511 'is_contact' => 0,
2512 'description' => '',
2513 'help_text' => '',
cf8f0fff
CW
2514 ],
2515 'simple_mail_limit' => [
798358d0 2516 'group_name' => 'Mailing Preferences',
2517 'group' => 'mailing',
2518 'name' => 'simple_mail_limit',
2519 'type' => 'Integer',
2520 'quick_form_type' => 'Element',
2521 'html_type' => 'text',
cf8f0fff 2522 'html_attributes' => [
798358d0 2523 'size' => 4,
2524 'maxlength' => 8,
cf8f0fff 2525 ],
798358d0 2526 'default' => 50,
2527 'title' => 'Simple mail limit',
2528 'is_domain' => 1,
2529 'is_contact' => 0,
2530 'description' => 'The number of emails sendable via simple mail. Make sure you understand the implications for your spam reputation and legal requirements for bulk emails before editing. As there is some risk both to your spam reputation and the products if this is misused it is a hidden setting',
2531 'help_text' => 'CiviCRM forces users sending more than this number of mails to use CiviMails. CiviMails have additional precautions: not sending to contacts who do not want bulk mail, adding domain name and opt out links. You should familiarise yourself with the law relevant to you on bulk mailings if changing this setting. For the US https://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003 is a good place to start.',
cf8f0fff 2532 ],
8390b11b
SL
2533 'auto_recipient_rebuild' => [
2534 'group_name' => 'Mailing Preferences',
2535 'group' => 'mailing',
2536 'name' => 'auto_recipient_rebuild',
2537 'type' => 'Boolean',
2538 'html_type' => 'checkbox',
2539 'quick_form_type' => 'CheckBox',
2540 'default' => '1',
2541 'title' => 'Enable automatic CiviMail recipient count display',
2542 'is_domain' => 1,
2543 'is_contact' => 0,
2544 'description' => 'Enable this setting to rebuild recipient list automatically during composing mail. Disable will allow you to rebuild recipient manually.',
2545 'help_text' => 'CiviMail automatically fetches recipient list and count whenever mailing groups are included or excluded while composing bulk mail. This phenomena may degrade performance for large sites, so disable this setting to build and fetch recipients for selected groups, manually.',
2546 ],
2547 'allow_mail_from_logged_in_contact' => [
2548 'group_name' => 'Mailing Preferences',
2549 'group' => 'mailing',
2550 'name' => 'allow_mail_from_logged_in_contact',
2551 'type' => 'Boolean',
2552 'quick_form_type' => 'YesNo',
2553 'default' => 1,
2554 'title' => 'Allow mail from logged in contact',
2555 'is_domain' => 1,
2556 'is_contact' => 0,
2557 'description' => 'Allow sending email from the logged in contact\'s email address',
2558 'help_text' => 'CiviCRM allows you to send email from the domain from email addresses and the logged in contact id addresses by default. Disable this if you only want to allow the domain from addresses to be used.',
2559 ],
cf8f0fff 2560 'geoAPIKey' => [
1d8ee3d6 2561 'add' => '4.7',
2562 'help_text' => '',
2563 'is_domain' => 1,
2564 'is_contact' => 0,
2565 'group_name' => 'Map Preferences',
2566 'group' => 'map',
2567 'name' => 'geoAPIKey',
2568 'type' => 'String',
2569 'quick_form_type' => 'Element',
2570 'html_type' => 'text',
cf8f0fff 2571 'html_attributes' => [
1d8ee3d6 2572 'size' => '32',
2573 'maxlength' => '64',
cf8f0fff 2574 ],
1d8ee3d6 2575 'default' => '',
2576 'title' => 'Geo Provider Key',
2577 'description' => 'Enter the API key or Application ID associated with your geocoding provider (not required for Yahoo).',
cf8f0fff
CW
2578 ],
2579 'geoProvider' => [
1d8ee3d6 2580 'add' => '4.7',
2581 'help_text' => '',
2582 'is_domain' => 1,
2583 'is_contact' => 0,
2584 'group_name' => 'Map Preferences',
2585 'group' => 'map',
2586 'name' => 'geoProvider',
2587 'type' => 'String',
2588 'quick_form_type' => 'Select',
2589 'html_type' => 'Select',
cf8f0fff 2590 'html_attributes' => [
1d8ee3d6 2591 'class' => 'crm-select2',
cf8f0fff
CW
2592 ],
2593 'pseudoconstant' => [
1d8ee3d6 2594 'callback' => 'CRM_Core_SelectValues::geoProvider',
cf8f0fff 2595 ],
1d8ee3d6 2596 'default' => '',
2597 'title' => 'Geocoding Provider',
89155632 2598 'description' => 'This can be the same or different from the mapping provider selected.',
cf8f0fff
CW
2599 ],
2600 'mapAPIKey' => [
1d8ee3d6 2601 'add' => '4.7',
2602 'help_text' => '',
2603 'is_domain' => 1,
2604 'is_contact' => 0,
2605 'group_name' => 'Map Preferences',
2606 'group' => 'map',
2607 'name' => 'mapAPIKey',
2608 'type' => 'String',
2609 'quick_form_type' => 'Element',
2610 'html_type' => 'text',
cf8f0fff 2611 'html_attributes' => [
1d8ee3d6 2612 'size' => '32',
2613 'maxlength' => '64',
cf8f0fff 2614 ],
1d8ee3d6 2615 'default' => '',
2616 'title' => 'Map Provider Key',
226a9d68 2617 'description' => 'Enter your API Key or Application ID. An API Key is required for the Google Maps API. Refer to developers.google.com for the latest information.',
cf8f0fff
CW
2618 ],
2619 'mapProvider' => [
1d8ee3d6 2620 'add' => '4.7',
2621 'help_text' => '',
2622 'is_domain' => 1,
2623 'is_contact' => 0,
2624 'group_name' => 'Map Preferences',
2625 'group' => 'map',
2626 'name' => 'mapProvider',
2627 'type' => 'String',
2628 'quick_form_type' => 'Select',
2629 'html_type' => 'Select',
cf8f0fff 2630 'html_attributes' => [
1d8ee3d6 2631 'class' => 'crm-select2',
cf8f0fff
CW
2632 ],
2633 'pseudoconstant' => [
1d8ee3d6 2634 'callback' => 'CRM_Core_SelectValues::mapProvider',
cf8f0fff 2635 ],
1d8ee3d6 2636 'default' => '',
2637 'title' => 'Mapping Provider',
2638 'description' => 'Choose the mapping provider that has the best coverage for the majority of your contact addresses.',
cf8f0fff
CW
2639 ],
2640 'default_renewal_contribution_page' => [
50fb255d 2641 'group_name' => 'Member Preferences',
2642 'group' => 'member',
2643 'name' => 'default_renewal_contribution_page',
2644 'type' => 'Integer',
8390b11b 2645 'html_type' => 'select',
50fb255d 2646 'default' => '',
cf8f0fff 2647 'pseudoconstant' => [
8390b11b 2648 'callback' => 'CRM_Contribute_PseudoConstant::contributionPage',
cf8f0fff 2649 ],
50fb255d 2650 'add' => '4.1',
2651 'title' => 'Default online membership renewal page',
2652 'is_domain' => 1,
2653 'is_contact' => 0,
2654 'description' => 'If you select a default online contribution page for self-service membership renewals, a \"renew\" link pointing to that page will be displayed on the Contact Dashboard for memberships which were entered offline. You will need to ensure that the membership block for the selected online contribution page includes any currently available memberships.',
2655 'help_text' => '',
cf8f0fff
CW
2656 ],
2657 'is_enabled' => [
50fb255d 2658 'group_name' => 'Multi Site Preferences',
2659 'group' => 'multisite',
2660 'name' => 'is_enabled',
8390b11b
SL
2661 'title' => 'Enable Multi Site Configuration',
2662 'html_type' => 'checkbox',
2663 'type' => 'Boolean',
1d8ee3d6 2664 'default' => 0,
50fb255d 2665 'add' => '4.1',
2666 'is_domain' => 1,
2667 'is_contact' => 0,
8390b11b
SL
2668 'description' => 'Make CiviCRM aware of multiple domains. You should configure a domain group if enabled',
2669 'documentation_link' => [
2670 'page' => 'Multi Site Installation',
2671 'resource' => 'wiki',
2672 ],
50fb255d 2673 'help_text' => '',
8390b11b
SL
2674 'settings_pages' => [
2675 'multisite' => [
2676 'weight' => 10,
2677 ],
2678 ],
cf8f0fff
CW
2679 ],
2680 'domain_group_id' => [
50fb255d 2681 'group_name' => 'Multi Site Preferences',
2682 'group' => 'multisite',
2683 'name' => 'domain_group_id',
2684 'title' => 'Multisite Domain Group',
2685 'type' => 'Integer',
8390b11b
SL
2686 'html_type' => 'entity_reference',
2687 'entity_reference_options' => [
2688 'entity' => 'Group',
2689 'select' => [
2690 'minimumInputLength' => 0,
2691 ],
2692 ],
1d8ee3d6 2693 'default' => 0,
50fb255d 2694 'add' => '4.1',
2695 'is_domain' => 1,
2696 'is_contact' => 0,
8390b11b 2697 'description' => 'Contacts created on this site are added to this group',
50fb255d 2698 'help_text' => '',
8390b11b
SL
2699 'settings_pages' => [
2700 'multisite' => [
2701 'weight' => 20,
2702 ],
2703 ],
cf8f0fff
CW
2704 ],
2705 'event_price_set_domain_id' => [
50fb255d 2706 'group_name' => 'Multi Site Preferences',
2707 'group' => 'multisite',
2708 'name' => 'event_price_set_domain_id',
2709 'title' => 'Domain Event Price Set',
2710 'type' => 'Integer',
1d8ee3d6 2711 'default' => 0,
50fb255d 2712 'add' => '4.1',
2713 'is_domain' => 1,
2714 'is_contact' => 0,
2715 'description' => '',
2716 'help_text' => '',
cf8f0fff
CW
2717 ],
2718 'uniq_email_per_site' => [
50fb255d 2719 'group_name' => 'Multi Site Preferences',
2720 'group' => 'multisite',
2721 'name' => 'uniq_email_per_site',
2722 'type' => 'Integer',
2723 'title' => 'Unique Email per Domain?',
1d8ee3d6 2724 'default' => 0,
50fb255d 2725 'add' => '4.1',
2726 'is_domain' => 1,
2727 'is_contact' => 0,
2728 'description' => '',
2729 'help_text' => '',
cf8f0fff
CW
2730 ],
2731 'search_autocomplete_count' => [
50fb255d 2732 'group_name' => 'Search Preferences',
2733 'group' => 'Search Preferences',
2734 'name' => 'search_autocomplete_count',
50fb255d 2735 'type' => 'Integer',
2736 'quick_form_type' => 'Element',
8390b11b 2737 'html_type' => 'number',
50fb255d 2738 'default' => 10,
2739 'add' => '4.3',
2740 'title' => 'Autocomplete Results',
2741 'is_domain' => 1,
2742 'is_contact' => 0,
2743 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
2744 'help_text' => '',
cf8f0fff
CW
2745 ],
2746 'enable_innodb_fts' => [
50fb255d 2747 'group_name' => 'Search Preferences',
2748 'group' => 'Search Preferences',
2749 'name' => 'enable_innodb_fts',
50fb255d 2750 'type' => 'Boolean',
2751 'quick_form_type' => 'YesNo',
2752 'default' => 0,
2753 'add' => '4.4',
2754 'title' => 'InnoDB Full Text Search',
2755 'is_domain' => 1,
2756 'is_contact' => 0,
2757 'description' => 'Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)',
2758 'help_text' => '',
cf8f0fff
CW
2759 'on_change' => [
2760 '0' => [
50fb255d 2761 '0' => 'CRM_Core_InnoDBIndexer',
2762 '1' => 'onToggleFts',
cf8f0fff
CW
2763 ],
2764 ],
2765 ],
2766 'fts_query_mode' => [
50fb255d 2767 'group_name' => 'Search Preferences',
2768 'group' => 'Search Preferences',
2769 'name' => 'fts_query_mode',
50fb255d 2770 'type' => 'String',
2771 'quick_form_type' => 'Element',
cf8f0fff 2772 'html_attributes' => [
50fb255d 2773 'size' => 64,
2774 'maxlength' => 64,
cf8f0fff 2775 ],
8390b11b 2776 'html_type' => 'text',
50fb255d 2777 'default' => 'simple',
2778 'add' => '4.5',
2779 'title' => 'How to handle full-tet queries',
2780 'is_domain' => 1,
2781 'is_contact' => 0,
2782 'description' => '',
2783 'help_text' => '',
cf8f0fff
CW
2784 ],
2785 'includeOrderByClause' => [
1d8ee3d6 2786 'group_name' => 'Search Preferences',
2787 'group' => 'Search Preferences',
2788 'name' => 'includeOrderByClause',
2789 'type' => 'Boolean',
2790 'quick_form_type' => 'YesNo',
2791 'default' => 1,
2792 'add' => '4.6',
2793 'title' => 'Include Order By Clause',
2794 'is_domain' => 1,
2795 'is_contact' => 0,
2796 'description' => 'If disabled, the search results will not be ordered. This may improve response time on search results on large datasets',
2797 'help_text' => '',
cf8f0fff
CW
2798 ],
2799 'includeWildCardInName' => [
1d8ee3d6 2800 'group_name' => 'Search Preferences',
2801 'group' => 'Search Preferences',
2802 'name' => 'includeWildCardInName',
2803 'type' => 'Boolean',
2804 'quick_form_type' => 'YesNo',
2805 'default' => 1,
2806 'add' => '4.6',
2807 'title' => 'Automatic Wildcard',
2808 'is_domain' => 1,
2809 'is_contact' => 0,
2810 'description' => 'If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for \'ada\' will return any contact whose name includes those letters - e.g. \'Adams, Janet\', \'Nadal, Jorge\', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for \'ada\' will return any contact whose last name begins with those letters - e.g. \'Adams, Janet\' but NOT \'Nadal, Jorge\'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards (\'%\' or \'_\') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: \'%ada\' will return \'Nadal, Jorge\'.',
2811 'help_text' => '',
cf8f0fff
CW
2812 ],
2813 'includeEmailInName' => [
1d8ee3d6 2814 'group_name' => 'Search Preferences',
2815 'group' => 'Search Preferences',
2816 'name' => 'includeEmailInName',
2817 'type' => 'Boolean',
2818 'quick_form_type' => 'YesNo',
2819 'default' => 1,
2820 'add' => '4.6',
2821 'title' => 'Include Email',
2822 'is_domain' => 1,
2823 'is_contact' => 0,
2824 'description' => 'If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.',
2825 'help_text' => '',
cf8f0fff
CW
2826 ],
2827 'includeNickNameInName' => [
1d8ee3d6 2828 'group_name' => 'Search Preferences',
2829 'group' => 'Search Preferences',
2830 'name' => 'includeNickNameInName',
2831 'type' => 'Boolean',
2832 'quick_form_type' => 'YesNo',
2833 'default' => 0,
2834 'add' => '4.6',
2835 'title' => 'Include Nickname',
2836 'is_domain' => 1,
2837 'is_contact' => 0,
2838 'description' => 'If enabled, nicknames are automatically included when users search by Name.',
2839 'help_text' => '',
cf8f0fff
CW
2840 ],
2841 'includeAlphabeticalPager' => [
1d8ee3d6 2842 'group_name' => 'Search Preferences',
2843 'group' => 'Search Preferences',
2844 'name' => 'includeAlphabeticalPager',
2845 'type' => 'Boolean',
2846 'quick_form_type' => 'YesNo',
2847 'default' => 1,
2848 'add' => '4.6',
2849 'title' => 'Include Alphabetical Pager',
2850 'is_domain' => 1,
2851 'is_contact' => 0,
2852 'description' => 'If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.',
2853 'help_text' => '',
cf8f0fff
CW
2854 ],
2855 'smartGroupCacheTimeout' => [
1d8ee3d6 2856 'group_name' => 'Search Preferences',
2857 'group' => 'Search Preferences',
2858 'name' => 'smartGroupCacheTimeout',
2859 'type' => 'Integer',
2860 'quick_form_type' => 'Element',
8390b11b 2861 'html_type' => 'number',
1d8ee3d6 2862 'default' => 5,
2863 'add' => '4.6',
2864 'title' => 'Smart group cache timeout',
2865 'is_domain' => 1,
2866 'is_contact' => 0,
2867 'description' => 'The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.',
2868 'help_text' => '',
cf8f0fff
CW
2869 ],
2870 'defaultSearchProfileID' => [
1d8ee3d6 2871 'group_name' => 'Search Preferences',
2872 'group' => 'Search Preferences',
2873 'name' => 'defaultSearchProfileID',
2874 'type' => 'Integer',
2875 'quick_form_type' => 'Select',
2876 'html_type' => 'Select',
cf8f0fff 2877 'html_attributes' => [
1d8ee3d6 2878 'class' => 'crm-select2',
cf8f0fff
CW
2879 ],
2880 'pseudoconstant' => [
1d8ee3d6 2881 'callback' => 'CRM_Admin_Form_Setting_Search::getAvailableProfiles',
cf8f0fff 2882 ],
1d8ee3d6 2883 'default' => '',
2884 'add' => '4.6',
2885 'title' => 'Default Contact Search Profile',
2886 'is_domain' => 1,
2887 'is_contact' => 0,
2888 'description' => 'If set, this will be the default profile used for contact search.',
2889 'help_text' => '',
cf8f0fff 2890 ],
8390b11b
SL
2891 'prevNextBackend' => [
2892 'group_name' => 'Search Preferences',
2893 'group' => 'Search Preferences',
2894 'name' => 'prevNextBackend',
2895 'type' => 'String',
2896 'quick_form_type' => 'Select',
2897 'html_type' => 'Select',
2898 'html_attributes' => [],
2899 'default' => 'default',
2900 'add' => '5.9',
2901 'title' => 'PrevNext Cache',
2902 'is_domain' => 1,
2903 'is_contact' => 0,
2904 'pseudoconstant' => [
2905 'callback' => 'CRM_Core_BAO_PrevNextCache::getPrevNextBackends',
2906 ],
2907 'description' => 'When performing a search, how should the search-results be cached?',
2908 'help_text' => '',
2909 ],
cf8f0fff 2910 'searchPrimaryDetailsOnly' => [
798358d0 2911 'group_name' => 'Search Preferences',
2912 'group' => 'Search Preferences',
2913 'name' => 'searchPrimaryDetailsOnly',
2914 'type' => 'Boolean',
2915 'quick_form_type' => 'YesNo',
2916 'default' => 1,
2917 'add' => '4.7',
2918 'title' => 'Search Primary Details Only',
2919 'is_domain' => 1,
2920 'is_contact' => 0,
2921 'description' => 'If enabled, only primary details (eg contact\'s primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.',
2922 'help_text' => '',
cf8f0fff 2923 ],
8390b11b
SL
2924 'quicksearch_options' => [
2925 'group_name' => 'Search Preferences',
2926 'group' => 'Search Preferences',
2927 'name' => 'quicksearch_options',
2928 'type' => 'string',
2929 'serialize' => 1,
2930 'html_type' => 'checkboxes',
2931 'sortable' => TRUE,
2932 'pseudoconstant' => [
2933 'callback' => 'CRM_Core_SelectValues::quicksearchOptions',
2934 ],
2935 'default' => [
2936 '0' => 'sort_name',
2937 '1' => 'contact_id',
2938 '2' => 'external_identifier',
2939 '3' => 'first_name',
2940 '4' => 'last_name',
2941 '5' => 'email',
2942 '6' => 'phone_numeric',
2943 '7' => 'street_address',
2944 '8' => 'city',
2945 '9' => 'postal_code',
2946 '10' => 'job_title',
2947 ],
2948 'add' => '5.8',
2949 'title' => 'Quicksearch options',
2950 'is_domain' => '1',
2951 'is_contact' => 0,
2952 'description' => 'Which fields can be searched on in the menubar quicksearch box? Don\'t see your custom field here? Make sure it is marked as Searchable.',
2953 'help_text' => '',
2954 ],
cf8f0fff 2955 'userFrameworkResourceURL' => [
1d8ee3d6 2956 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 2957 'group' => 'url',
2958 'group_name' => 'URL Preferences',
2959 'name' => 'userFrameworkResourceURL',
1d8ee3d6 2960 'title' => 'CiviCRM Resource URL',
50fb255d 2961 'type' => 'String',
8390b11b 2962 'html_type' => 'text',
1d8ee3d6 2963 'quick_form_type' => 'Element',
50fb255d 2964 'default' => '',
2965 'add' => '4.1',
50fb255d 2966 'is_domain' => 1,
2967 'is_contact' => 0,
1d8ee3d6 2968 'description' => 'Absolute URL of the location where the civicrm module or component has been installed.',
50fb255d 2969 'help_text' => '',
1d8ee3d6 2970 'validate_callback' => 'CRM_Utils_Rule::urlish',
cf8f0fff
CW
2971 ],
2972 'imageUploadURL' => [
1d8ee3d6 2973 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 2974 'group' => 'url',
2975 'group_name' => 'URL Preferences',
1d8ee3d6 2976 'title' => 'Image Upload URL',
50fb255d 2977 'name' => 'imageUploadURL',
2978 'type' => 'String',
8390b11b 2979 'html_type' => 'text',
1d8ee3d6 2980 'quick_form_type' => 'Element',
50fb255d 2981 'default' => '',
2982 'add' => '4.1',
50fb255d 2983 'is_domain' => 1,
2984 'is_contact' => 0,
1d8ee3d6 2985 'description' => 'URL of the location for uploaded image files.',
50fb255d 2986 'help_text' => '',
1d8ee3d6 2987 'validate_callback' => 'CRM_Utils_Rule::urlish',
cf8f0fff
CW
2988 ],
2989 'customCSSURL' => [
1d8ee3d6 2990 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
50fb255d 2991 'group' => 'url',
2992 'group_name' => 'URL Preferences',
2993 'name' => 'customCSSURL',
1d8ee3d6 2994 'title' => 'Custom CSS URL',
50fb255d 2995 'type' => 'String',
8390b11b 2996 'html_type' => 'text',
1d8ee3d6 2997 'quick_form_type' => 'Element',
50fb255d 2998 'default' => '',
2999 'add' => '4.1',
50fb255d 3000 'is_domain' => 1,
3001 'is_contact' => 0,
1d8ee3d6 3002 'description' => 'You can modify the look and feel of CiviCRM by adding your own stylesheet. For small to medium sized modifications, use your css file to override some of the styles in civicrm.css. Or if you need to make drastic changes, you can choose to disable civicrm.css completely.',
50fb255d 3003 'help_text' => '',
1d8ee3d6 3004 'validate_callback' => 'CRM_Utils_Rule::urlish',
cf8f0fff
CW
3005 ],
3006 'extensionsURL' => [
1d8ee3d6 3007 'bootstrap_comment' => 'This is a boot setting which may be loaded during bootstrap. Defaults are loaded via SettingsBag::getSystemDefaults().',
3008 'group' => 'url',
3009 'group_name' => 'URL Preferences',
3010 'title' => 'Extension Resource URL',
3011 'name' => 'extensionsURL',
3012 'type' => 'String',
8390b11b 3013 'html_type' => 'text',
1d8ee3d6 3014 'quick_form_type' => 'Element',
3015 'default' => '',
3016 'add' => '4.1',
3017 'is_domain' => 1,
3018 'is_contact' => 0,
3019 'description' => 'Base URL for extension resources (images, stylesheets, etc). This should match extensionsDir.',
3020 'help_text' => '',
3021 'validate_callback' => 'CRM_Utils_Rule::urlish',
cf8f0fff
CW
3022 ],
3023 ],
3024 ];
6a488035 3025
fb32de45 3026 return $expectedResult;
6a488035
TO
3027}
3028
a828d7b8 3029/*
50fb255d 3030* This example has been generated from the API test suite.
a828d7b8
CW
3031* The test that created it is called "testGetFields"
3032* and can be found at:
69d79249 3033* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php
6a488035
TO
3034*
3035* You can see the outcome of the API tests at
8390b11b 3036* https://test.civicrm.org/job/CiviCRM-Core-Matrix/
6a488035
TO
3037*
3038* To Learn about the API read
8390b11b 3039* https://docs.civicrm.org/dev/en/latest/api/
6a488035 3040*
8390b11b
SL
3041* Browse the API on your own site with the API Explorer. It is in the main
3042* CiviCRM menu, under: Support > Development > API Explorer.
6a488035
TO
3043*
3044* Read more about testing here
8390b11b 3045* https://docs.civicrm.org/dev/en/latest/testing/
6a488035
TO
3046*
3047* API Standards documentation:
8390b11b 3048* https://docs.civicrm.org/dev/en/latest/framework/api-architecture/
b25fe59a 3049*/