commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / api / v3 / examples / Setting / GetFields.php
1 <?php
2 /**
3 * Test Generated example demonstrating the Setting.getfields API.
4 *
5 * Demonstrate return from getfields - see subfolder for variants
6 *
7 * @return array
8 * API result array
9 */
10 function setting_getfields_example() {
11 $params = array();
12
13 try{
14 $result = civicrm_api3('Setting', 'getfields', $params);
15 }
16 catch (CiviCRM_API3_Exception $e) {
17 // Handle error here.
18 $errorMessage = $e->getMessage();
19 $errorCode = $e->getErrorCode();
20 $errorData = $e->getExtraParams();
21 return array(
22 'error' => $errorMessage,
23 'error_code' => $errorCode,
24 'error_data' => $errorData,
25 );
26 }
27
28 return $result;
29 }
30
31 /**
32 * Function returns array of result expected from previous function.
33 *
34 * @return array
35 * API result array
36 */
37 function setting_getfields_expectedresult() {
38
39 $expectedResult = array(
40 'is_error' => 0,
41 'version' => 3,
42 'count' => 91,
43 'values' => array(
44 'address_standardization_provider' => array(
45 'group_name' => 'Address Preferences',
46 'group' => 'address',
47 'name' => 'address_standardization_provider',
48 'type' => 'String',
49 'html_type' => 'Select',
50 'default' => '',
51 'add' => '4.1',
52 'title' => 'Address Standardization Provider.',
53 'is_domain' => 1,
54 'is_contact' => 0,
55 'description' => '',
56 '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. ',
57 ),
58 'address_standardization_userid' => array(
59 'group_name' => 'Address Preferences',
60 'group' => 'address',
61 'name' => 'address_standardization_userid',
62 'type' => 'String',
63 'html_type' => 'Text',
64 'default' => '',
65 'add' => '4.1',
66 'title' => 'Web service user ID',
67 'is_domain' => 1,
68 'is_contact' => 0,
69 'description' => '',
70 'help_text' => '',
71 ),
72 'address_standardization_url' => array(
73 'group_name' => 'Address Preferences',
74 'group' => 'address',
75 'name' => 'address_standardization_url',
76 'type' => 'Text',
77 'html_type' => 'Text',
78 'default' => '',
79 'add' => '4.1',
80 'title' => 'Web Service URL',
81 'is_domain' => 1,
82 'is_contact' => 0,
83 'description' => '',
84 'help_text' => 'Web Service URL',
85 'validate_callback' => 'CRM_Utils_Rule::url',
86 ),
87 'tag_unconfirmed' => array(
88 'group_name' => 'Campaign Preferences',
89 'group' => 'campaign',
90 'name' => 'tag_unconfirmed',
91 'type' => 'String',
92 'html_type' => 'Text',
93 'default' => 'Unconfirmed',
94 'add' => '4.1',
95 'title' => 'Tag for Unconfirmed Petition Signers',
96 'is_domain' => 1,
97 'is_contact' => 0,
98 'description' => '',
99 'help_text' => 'If set, new contacts that are created when signing a petition are assigned a tag of this name.',
100 ),
101 'petition_contacts' => array(
102 'group_name' => 'Campaign Preferences',
103 'group' => 'campaign',
104 'name' => 'petition_contacts',
105 'type' => 'String',
106 'html_type' => 'Text',
107 'default' => 'Petition Contacts',
108 'add' => '4.1',
109 'title' => 'Petition Signers Group',
110 'is_domain' => 1,
111 'is_contact' => 0,
112 'description' => '',
113 'help_text' => 'If set, new contacts that are created when signing a petition are assigned a tag of this name.',
114 ),
115 'cvv_backoffice_required' => array(
116 'group_name' => 'Contribute Preferences',
117 'group' => 'contribute',
118 'name' => 'cvv_backoffice_required',
119 'type' => 'Boolean',
120 'quick_form_type' => 'YesNo',
121 'default' => '1',
122 'add' => '4.1',
123 'title' => 'CVV required for backoffice?',
124 'is_domain' => 1,
125 'is_contact' => 0,
126 'description' => 'Is the CVV code required for back office credit card transactions',
127 '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',
128 ),
129 'contact_view_options' => array(
130 'group_name' => 'CiviCRM Preferences',
131 'group' => 'core',
132 'name' => 'contact_view_options',
133 'type' => 'String',
134 'html_type' => 'checkboxes',
135 'pseudoconstant' => array(
136 'optionGroupName' => 'contact_view_options',
137 ),
138 'default' => array(
139 '0' => '1',
140 '1' => '2',
141 '2' => '3',
142 '3' => '4',
143 '4' => '5',
144 '5' => '6',
145 '6' => '7',
146 '7' => '8',
147 '8' => '9',
148 '9' => '10',
149 '10' => '11',
150 '11' => '13',
151 ),
152 'add' => '4.1',
153 'title' => 'Viewing Contacts',
154 'is_domain' => '1',
155 'is_contact' => 0,
156 'description' => '',
157 'help_text' => '',
158 ),
159 'contact_edit_options' => array(
160 'group_name' => 'CiviCRM Preferences',
161 'group' => 'core',
162 'name' => 'contact_edit_options',
163 'type' => 'String',
164 'html_type' => 'checkboxes',
165 'pseudoconstant' => array(
166 'optionGroupName' => 'contact_edit_options',
167 ),
168 'default' => array(
169 '0' => '1',
170 '1' => '2',
171 '2' => '3',
172 '3' => '4',
173 '4' => '5',
174 '5' => '6',
175 '6' => '7',
176 '7' => '8',
177 '8' => '9',
178 '9' => '10',
179 '10' => '11',
180 ),
181 'add' => '4.1',
182 'title' => 'Editing Contacts',
183 'is_domain' => 1,
184 'is_contact' => 0,
185 'description' => '',
186 'help_text' => '',
187 ),
188 'advanced_search_options' => array(
189 'group_name' => 'CiviCRM Preferences',
190 'name' => 'advanced_search_options',
191 'type' => 'String',
192 'html_type' => 'checkboxes',
193 'pseudoconstant' => array(
194 'optionGroupName' => 'advanced_search_options',
195 ),
196 'default' => array(
197 '0' => '1',
198 '1' => '2',
199 '2' => '3',
200 '3' => '4',
201 '4' => '5',
202 '5' => '6',
203 '6' => '7',
204 '7' => '8',
205 '8' => '9',
206 '9' => '10',
207 '10' => '12',
208 '11' => '13',
209 '12' => '15',
210 '13' => '16',
211 '14' => '17',
212 '15' => '18',
213 '16' => '19',
214 ),
215 'add' => '4.1',
216 'title' => 'Contact Search',
217 'is_domain' => 1,
218 'is_contact' => 0,
219 'description' => '',
220 'help_text' => '',
221 ),
222 'user_dashboard_options' => array(
223 'group_name' => 'CiviCRM Preferences',
224 'group' => 'core',
225 'name' => 'user_dashboard_options',
226 'type' => 'String',
227 'html_type' => 'checkboxes',
228 'pseudoconstant' => array(
229 'optionGroupName' => 'user_dashboard_options',
230 ),
231 'default' => array(
232 '0' => '1',
233 '1' => '2',
234 '2' => '3',
235 '3' => '4',
236 '4' => '5',
237 '5' => '7',
238 '6' => '8',
239 '7' => '9',
240 ),
241 'add' => '4.1',
242 'title' => 'Contact Dashboard',
243 'is_domain' => 1,
244 'is_contact' => 0,
245 'description' => '',
246 'help_text' => '',
247 ),
248 'address_options' => array(
249 'group_name' => 'CiviCRM Preferences',
250 'group' => 'core',
251 'name' => 'address_options',
252 'type' => 'String',
253 'html_type' => 'Text',
254 'pseudoconstant' => array(
255 'optionGroupName' => 'address_options',
256 ),
257 'default' => array(
258 '0' => '1',
259 '1' => '2',
260 '2' => '4',
261 '3' => '5',
262 '4' => '8',
263 '5' => '9',
264 '6' => '10',
265 '7' => '11',
266 ),
267 'add' => '4.1',
268 'title' => 'Addressing Options',
269 'is_domain' => 1,
270 'is_contact' => 0,
271 'description' => '',
272 'help_text' => '',
273 ),
274 'address_format' => array(
275 'group_name' => 'CiviCRM Preferences',
276 'group' => 'core',
277 'name' => 'address_format',
278 'type' => 'String',
279 'html_type' => 'TextArea',
280 'default' => '{contact.address_name}
281 {contact.street_address}
282 {contact.supplemental_address_1}
283 {contact.supplemental_address_2}
284 {contact.city}{, }{contact.state_province}{ }{contact.postal_code}
285 {contact.country}',
286 'add' => '4.1',
287 'title' => 'Address Format',
288 'is_domain' => 1,
289 'is_contact' => 0,
290 'description' => '',
291 'help_text' => '',
292 ),
293 'mailing_format' => array(
294 'group_name' => 'CiviCRM Preferences',
295 'group' => 'core',
296 'name' => 'mailing_format',
297 'type' => 'String',
298 'html_type' => 'Text',
299 'default' => '{contact.addressee}
300 {contact.street_address}
301 {contact.supplemental_address_1}
302 {contact.supplemental_address_2}
303 {contact.city}{, }{contact.state_province}{ }{contact.postal_code}
304 {contact.country}',
305 'add' => '4.1',
306 'title' => 'Mailing Format',
307 'is_domain' => 1,
308 'is_contact' => 0,
309 'description' => '',
310 'help_text' => '',
311 ),
312 'display_name_format' => array(
313 'group_name' => 'CiviCRM Preferences',
314 'group' => 'core',
315 'name' => 'display_name_format',
316 'type' => 'String',
317 'html_type' => 'Text',
318 'default' => '{contact.individual_prefix}{ }{contact.first_name}{ }{contact.last_name}{ }{contact.individual_suffix}',
319 'add' => '4.1',
320 'title' => 'Display Name Format',
321 'is_domain' => 1,
322 'is_contact' => 0,
323 'description' => '',
324 'help_text' => '',
325 ),
326 'sort_name_format' => array(
327 'group_name' => 'CiviCRM Preferences',
328 'group' => 'core',
329 'name' => 'sort_name_format',
330 'type' => 'String',
331 'html_type' => 'Text',
332 'default' => '{contact.last_name}{, }{contact.first_name}',
333 'add' => '4.1',
334 'title' => 'Sort Name Format',
335 'is_domain' => 1,
336 'is_contact' => 0,
337 'description' => '',
338 'help_text' => '',
339 ),
340 'editor_id' => array(
341 'group_name' => 'CiviCRM Preferences',
342 'group' => 'core',
343 'name' => 'editor_id',
344 'type' => 'String',
345 'html_type' => 'Text',
346 'default' => '',
347 'add' => '4.1',
348 'title' => 'Wysiwig Editor',
349 'is_domain' => 1,
350 'is_contact' => 0,
351 'description' => '',
352 'help_text' => '',
353 ),
354 'contact_ajax_check_similar' => array(
355 'group_name' => 'CiviCRM Preferences',
356 'group' => 'core',
357 'name' => 'contact_ajax_check_similar',
358 'type' => 'String',
359 'html_type' => 'Text',
360 'default' => '',
361 'add' => '4.1',
362 'title' => 'Ajax Check Similar',
363 'is_domain' => 1,
364 'is_contact' => 0,
365 'description' => '',
366 'help_text' => '',
367 ),
368 'ajaxPopupsEnabled' => array(
369 'group_name' => 'CiviCRM Preferences',
370 'group' => 'core',
371 'name' => 'ajaxPopupsEnabled',
372 'type' => 'Boolean',
373 'quick_form_type' => 'YesNo',
374 'default' => 1,
375 'add' => '4.5',
376 'title' => 'Ajax Popups Enabled',
377 'is_domain' => 1,
378 'is_contact' => 0,
379 'description' => '',
380 'help_text' => '',
381 ),
382 'activity_assignee_notification' => array(
383 'group_name' => 'CiviCRM Preferences',
384 'group' => 'core',
385 'name' => 'activity_assignee_notification',
386 'type' => 'String',
387 'html_type' => 'Text',
388 'default' => '',
389 'add' => '4.1',
390 'title' => 'Notify Activity Assignees',
391 'is_domain' => 1,
392 'is_contact' => 0,
393 'description' => '',
394 'help_text' => '',
395 ),
396 'activity_assignee_notification_ics' => array(
397 'group_name' => 'CiviCRM Preferences',
398 'group' => 'core',
399 'name' => 'activity_assignee_notification_ics',
400 'type' => 'String',
401 'html_type' => 'Text',
402 'default' => '',
403 'add' => '4.3',
404 'title' => 'Include ICal Invite to Activity Assignees',
405 'is_domain' => 1,
406 'is_contact' => 0,
407 'description' => '',
408 'help_text' => '',
409 ),
410 'contact_autocomplete_options' => array(
411 'group_name' => 'CiviCRM Preferences',
412 'group' => 'core',
413 'name' => 'contact_autocomplete_options',
414 'type' => 'String',
415 'html_type' => 'checkboxes',
416 'pseudoconstant' => array(
417 'optionGroupName' => 'contact_autocomplete_options',
418 ),
419 'default' => array(
420 '0' => '1',
421 '1' => '2',
422 '2' => '3',
423 '3' => '4',
424 '4' => '5',
425 '5' => '6',
426 '6' => '7',
427 ),
428 'add' => '4.1',
429 'title' => 'Contact Reference Autocomplete Options',
430 'is_domain' => 1,
431 'is_contact' => 0,
432 'description' => '',
433 'help_text' => '',
434 ),
435 'contact_reference_options' => array(
436 'group_name' => 'CiviCRM Preferences',
437 'group' => 'core',
438 'name' => 'contact_reference_options',
439 'type' => 'String',
440 'html_type' => 'checkboxes',
441 'pseudoconstant' => array(
442 'optionGroupName' => 'contact_reference_options',
443 ),
444 'default' => array(
445 '0' => '1',
446 '1' => '2',
447 '2' => '3',
448 '3' => '4',
449 '4' => '5',
450 '5' => '6',
451 '6' => '7',
452 ),
453 'add' => '4.1',
454 'title' => 'Contact Reference Options',
455 'is_domain' => 1,
456 'is_contact' => 0,
457 'description' => '',
458 'help_text' => '',
459 ),
460 'max_attachments' => array(
461 'group_name' => 'CiviCRM Preferences',
462 'group' => 'core',
463 'name' => 'max_attachments',
464 'legacy_key' => 'maxAttachments',
465 'prefetch' => 0,
466 'type' => 'Integer',
467 'quick_form_type' => 'Element',
468 'html_type' => 'text',
469 'html_attributes' => array(
470 'size' => 2,
471 'maxlength' => 8,
472 ),
473 'default' => 3,
474 'add' => '4.3',
475 'title' => 'Maximum Attachments',
476 'is_domain' => 1,
477 'is_contact' => 0,
478 'description' => 'Maximum number of files (documents, images, etc.) which can attached to emails or activities.',
479 'help_text' => '',
480 ),
481 'maxFileSize' => array(
482 'group_name' => 'CiviCRM Preferences',
483 'group' => 'core',
484 'name' => 'maxFileSize',
485 'prefetch' => 1,
486 'config_only' => 1,
487 'type' => 'Integer',
488 'quick_form_type' => 'Element',
489 'html_type' => 'text',
490 'html_attributes' => array(
491 'size' => 2,
492 'maxlength' => 8,
493 ),
494 'default' => 3,
495 'add' => '4.3',
496 'title' => 'Maximum File Size (in MB)',
497 'is_domain' => 1,
498 'is_contact' => 0,
499 'description' => 'Maximum Size of file (documents, images, etc.) which can attached to emails or activities.<br />Note: php.ini should support this file size.',
500 'help_text' => '',
501 ),
502 'contact_undelete' => array(
503 'group_name' => 'CiviCRM Preferences',
504 'group' => 'core',
505 'name' => 'contact_undelete',
506 'type' => 'Boolean',
507 'quick_form_type' => 'YesNo',
508 'default' => 1,
509 'add' => '4.3',
510 'title' => 'Contact Trash and Undelete',
511 'is_domain' => 1,
512 'is_contact' => 0,
513 '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).',
514 'help_text' => '',
515 ),
516 'allowPermDeleteFinancial' => array(
517 'group_name' => 'CiviCRM Preferences',
518 'group' => 'core',
519 'name' => 'allowPermDeleteFinancial',
520 'type' => 'Boolean',
521 'quick_form_type' => 'YesNo',
522 'default' => '',
523 'add' => '4.3',
524 'title' => 'Contact Permanent Delete',
525 'is_domain' => 1,
526 'is_contact' => 0,
527 'description' => 'Allow Permanent Delete for contacts who are linked to live financial transactions',
528 'help_text' => '',
529 ),
530 'versionAlert' => array(
531 'group_name' => 'CiviCRM Preferences',
532 'group' => 'core',
533 'name' => 'versionAlert',
534 'type' => 'Integer',
535 'quick_form_type' => 'Element',
536 'html_type' => 'select',
537 'option_values' => array(
538 '0' => 'Disabled',
539 '1' => 'Display In Page Footer',
540 '2' => 'Display As Popup Alert',
541 '3' => 'Page Footer + Popup Alert',
542 ),
543 'default' => 1,
544 'add' => '4.3',
545 'title' => 'New Version Alerts',
546 'is_domain' => 1,
547 'is_contact' => 0,
548 'description' => '',
549 'help_text' => '',
550 ),
551 'securityUpdateAlert' => array(
552 'group_name' => 'CiviCRM Preferences',
553 'group' => 'core',
554 'name' => 'securityUpdateAlert',
555 'type' => 'Integer',
556 'quick_form_type' => 'Element',
557 'html_type' => 'select',
558 'option_values' => array(
559 '0' => 'Disabled',
560 '1' => 'Display In Page Footer',
561 '2' => 'Display As Popup Alert',
562 '3' => 'Page Footer + Popup Alert',
563 ),
564 'default' => 3,
565 'add' => '4.6',
566 'title' => 'Security Update Alerts',
567 'is_domain' => 1,
568 'is_contact' => 0,
569 'description' => '',
570 'help_text' => '',
571 ),
572 'versionCheck' => array(
573 'group_name' => 'CiviCRM Preferences',
574 'group' => 'core',
575 'name' => 'versionCheck',
576 'type' => 'Boolean',
577 'quick_form_type' => 'YesNo',
578 'default' => 1,
579 'add' => '4.3',
580 'title' => 'Automatically Check for Updates',
581 'is_domain' => 1,
582 'is_contact' => 0,
583 'description' => '',
584 'help_text' => '',
585 ),
586 'versionCheckIgnoreDate' => array(
587 'group_name' => 'CiviCRM Preferences',
588 'group' => 'core',
589 'name' => 'versionCheckIgnoreDate',
590 'type' => 'String',
591 'quick_form_type' => 'Element',
592 'html_type' => 'text',
593 'html_attributes' => array(
594 'placeholder' => 'YYYY-MM-DD',
595 ),
596 'default' => '',
597 'add' => '4.6',
598 'title' => 'Ignore Updates Prior to',
599 'is_domain' => 1,
600 'is_contact' => 0,
601 'description' => '',
602 'help_text' => '',
603 ),
604 'securityAlert' => array(
605 'group_name' => 'CiviCRM Preferences',
606 'group' => 'core',
607 'name' => 'securityAlert',
608 'type' => 'Boolean',
609 'quick_form_type' => 'YesNo',
610 'default' => 1,
611 'add' => '4.4',
612 'title' => 'Security Audits',
613 'is_domain' => 1,
614 'is_contact' => 0,
615 'description' => 'If enabled, CiviCRM will automatically run checks for significant mis-configurations such as ineffective file protections.',
616 'help_text' => '',
617 ),
618 'doNotAttachPDFReceipt' => array(
619 'group_name' => 'CiviCRM Preferences',
620 'group' => 'core',
621 'name' => 'doNotAttachPDFReceipt',
622 'prefetch' => 1,
623 'config_only' => 1,
624 'type' => 'Boolean',
625 'quick_form_type' => 'YesNo',
626 'default' => 1,
627 'add' => '4.3',
628 'title' => 'Attach PDF copy to receipts',
629 'is_domain' => 1,
630 'is_contact' => 0,
631 'description' => 'If enabled, CiviCRM sends PDF receipt as an attachment during event signup or online contribution.',
632 'help_text' => '',
633 ),
634 'wkhtmltopdfPath' => array(
635 'group_name' => 'CiviCRM Preferences',
636 'group' => 'core',
637 'name' => 'wkhtmltopdfPath',
638 'prefetch' => 1,
639 'config_only' => 1,
640 'type' => 'String',
641 'quick_form_type' => 'Element',
642 'html_attributes' => array(
643 'size' => 64,
644 'maxlength' => 256,
645 ),
646 'html_type' => 'Text',
647 'default' => '',
648 'add' => '4.3',
649 'title' => 'Path to wkhtmltopdf executable',
650 'is_domain' => 1,
651 'is_contact' => 0,
652 'description' => '',
653 'help_text' => '',
654 ),
655 'recaptchaPublicKey' => array(
656 'group_name' => 'CiviCRM Preferences',
657 'group' => 'core',
658 'name' => 'recaptchaPublicKey',
659 'prefetch' => 1,
660 'config_only' => 1,
661 'type' => 'String',
662 'quick_form_type' => 'Element',
663 'html_attributes' => array(
664 'size' => 64,
665 'maxlength' => 64,
666 ),
667 'html_type' => 'Text',
668 'default' => '',
669 'add' => '4.3',
670 'title' => 'Recaptcha Public Key',
671 'is_domain' => 1,
672 'is_contact' => 0,
673 'description' => '',
674 'help_text' => '',
675 ),
676 'recaptchaPrivateKey' => array(
677 'group_name' => 'CiviCRM Preferences',
678 'group' => 'core',
679 'name' => 'recaptchaPrivateKey',
680 'prefetch' => 1,
681 'config_only' => 1,
682 'type' => 'String',
683 'quick_form_type' => 'Element',
684 'html_attributes' => array(
685 'size' => 64,
686 'maxlength' => 64,
687 ),
688 'html_type' => 'Text',
689 'default' => '',
690 'add' => '4.3',
691 'title' => 'Recaptcha Private Key',
692 'is_domain' => 1,
693 'is_contact' => 0,
694 'description' => '',
695 'help_text' => '',
696 ),
697 'dashboardCacheTimeout' => array(
698 'group_name' => 'CiviCRM Preferences',
699 'group' => 'core',
700 'name' => 'dashboardCacheTimeout',
701 'prefetch' => 1,
702 'config_only' => 1,
703 'type' => 'Integer',
704 'quick_form_type' => 'Element',
705 'html_attributes' => array(
706 'size' => 3,
707 'maxlength' => 5,
708 ),
709 'html_type' => 'Text',
710 'default' => '',
711 'add' => '4.3',
712 'title' => 'Dashboard cache timeout',
713 'is_domain' => 1,
714 'is_contact' => 0,
715 'description' => '',
716 'help_text' => '',
717 ),
718 'checksumTimeout' => array(
719 'group_name' => 'CiviCRM Preferences',
720 'group' => 'core',
721 'name' => 'checksumTimeout',
722 'prefetch' => 1,
723 'type' => 'Integer',
724 'quick_form_type' => 'Element',
725 'html_attributes' => array(
726 'size' => 2,
727 'maxlength' => 8,
728 ),
729 'html_type' => 'Text',
730 'default' => 7,
731 'add' => '4.3',
732 'title' => 'Checksum Lifespan',
733 'is_domain' => 1,
734 'is_contact' => 0,
735 'description' => '',
736 'help_text' => '',
737 ),
738 'blogUrl' => array(
739 'group_name' => 'CiviCRM Preferences',
740 'group' => 'core',
741 'name' => 'blogUrl',
742 'prefetch' => 0,
743 'type' => 'String',
744 'quick_form_type' => 'Element',
745 'html_attributes' => array(
746 'size' => 64,
747 'maxlength' => 128,
748 ),
749 'html_type' => 'Text',
750 'default' => '*default*',
751 'add' => '4.3',
752 'title' => 'Blog Feed URL',
753 'is_domain' => 1,
754 'is_contact' => 0,
755 'description' => 'Blog feed URL used by the blog dashlet',
756 'help_text' => 'Use \"*default*\" for the system default or override with a custom URL',
757 ),
758 'communityMessagesUrl' => array(
759 'group_name' => 'CiviCRM Preferences',
760 'group' => 'core',
761 'name' => 'communityMessagesUrl',
762 'prefetch' => 0,
763 'type' => 'String',
764 'quick_form_type' => 'Element',
765 'html_attributes' => array(
766 'size' => 64,
767 'maxlength' => 128,
768 ),
769 'html_type' => 'Text',
770 'default' => '*default*',
771 'add' => '4.3',
772 'title' => 'Community Messages URL',
773 'is_domain' => 1,
774 'is_contact' => 0,
775 'description' => 'Service providing CiviCRM community messages',
776 'help_text' => 'Use \"*default*\" for the system default or override with a custom URL',
777 ),
778 'resCacheCode' => array(
779 'group_name' => 'CiviCRM Preferences',
780 'group' => 'core',
781 'name' => 'resCacheCode',
782 'prefetch' => 1,
783 'config_only' => 1,
784 'type' => 'String',
785 'quick_form_type' => 'Element',
786 'html_attributes' => array(
787 'size' => 16,
788 'maxlength' => 16,
789 ),
790 'html_type' => 'Text',
791 'default' => '',
792 'add' => '4.3',
793 'title' => 'Resource Cache Code',
794 'is_domain' => 1,
795 'is_contact' => 0,
796 'description' => 'Code appended to resource URLs (JS/CSS) to coerce HTTP caching',
797 'help_text' => '',
798 ),
799 'verifySSL' => array(
800 'group_name' => 'CiviCRM Preferences',
801 'group' => 'core',
802 'name' => 'verifySSL',
803 'type' => 'Boolean',
804 'quick_form_type' => 'YesNo',
805 'default' => 1,
806 'add' => '4.3',
807 'title' => 'Verify SSL?',
808 'is_domain' => 1,
809 'is_contact' => 0,
810 'description' => 'If disabled, backend HTTPS services will allow unverified, insecure connections',
811 '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',
812 ),
813 'wpBasePage' => array(
814 'group_name' => 'CiviCRM Preferences',
815 'group' => 'core',
816 'name' => 'wpBasePage',
817 'type' => 'String',
818 'html_type' => 'text',
819 'quick_form_type' => 'Element',
820 'prefetch' => 1,
821 'default' => '',
822 'add' => '4.3',
823 'title' => 'WordPress Base Page',
824 'is_domain' => 1,
825 'is_contact' => 0,
826 'description' => 'If set, CiviCRM will use this setting as the base url.',
827 '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.',
828 ),
829 'secondDegRelPermissions' => array(
830 'group_name' => 'CiviCRM Preferences',
831 'group' => 'core',
832 'name' => 'secondDegRelPermissions',
833 'prefetch' => 1,
834 'type' => 'Boolean',
835 'quick_form_type' => 'YesNo',
836 'default' => 0,
837 'add' => '4.3',
838 'title' => 'Allow second-degree relationship permissions',
839 'is_domain' => 1,
840 'is_contact' => 0,
841 'description' => 'If enabled, contacts with the permission to edit a related contact will inherit that contact\'s permission to edit other related contacts',
842 'help_text' => '',
843 ),
844 'enable_components' => array(
845 'group_name' => 'CiviCRM Preferences',
846 'group' => 'core',
847 'name' => 'enable_components',
848 'type' => 'Array',
849 'quick_form_type' => 'Element',
850 'html_type' => 'advmultiselect',
851 'html_attributes' => array(
852 'size' => 5,
853 'style' => 'width:150px',
854 'class' => 'advmultiselect',
855 ),
856 'default' => array(
857 '0' => 'CiviEvent',
858 '1' => 'CiviContribute',
859 '2' => 'CiviMember',
860 '3' => 'CiviMail',
861 '4' => 'CiviReport',
862 '5' => 'CiviPledge',
863 ),
864 'add' => '4.4',
865 'title' => 'Enable Components',
866 'is_domain' => '1',
867 'is_contact' => 0,
868 'description' => '',
869 'help_text' => '',
870 'on_change' => array(
871 '0' => 'CRM_Case_Info::onToggleComponents',
872 '1' => 'CRM_Core_Component::flushEnabledComponents',
873 '2' => 'call://resources/resetCacheCode',
874 ),
875 ),
876 'disable_core_css' => array(
877 'group_name' => 'CiviCRM Preferences',
878 'group' => 'core',
879 'name' => 'disable_core_css',
880 'type' => 'Boolean',
881 'quick_form_type' => 'YesNo',
882 'default' => 0,
883 'add' => '4.4',
884 'title' => 'Disable CiviCRM css',
885 'is_domain' => 1,
886 'is_contact' => 0,
887 'description' => 'Prevent the stylesheet \"civicrm.css\" from being loaded.',
888 'help_text' => '',
889 ),
890 'empoweredBy' => array(
891 'group_name' => 'CiviCRM Preferences',
892 'group' => 'core',
893 'name' => 'empoweredBy',
894 'prefetch' => 1,
895 'type' => 'Boolean',
896 'quick_form_type' => 'YesNo',
897 'default' => 1,
898 'add' => '4.5',
899 'title' => 'Display \"empowered by CiviCRM\"',
900 'is_domain' => 1,
901 'is_contact' => 0,
902 'description' => 'When enabled, \"empowered by CiviCRM\" is displayed at the bottom of public forms.',
903 'help_text' => '',
904 ),
905 'userFrameworkLogging' => array(
906 'group_name' => 'Developer Preferences',
907 'group' => 'developer',
908 'name' => 'userFrameworkLogging',
909 'type' => 'Boolean',
910 'quick_form_type' => 'YesNo',
911 'default' => 0,
912 'add' => '4.3',
913 'title' => 'Enable Drupal Watchdog Logging',
914 'is_domain' => 1,
915 'is_contact' => 0,
916 'description' => 'Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs',
917 'prefetch' => 1,
918 '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)',
919 ),
920 'debug_enabled' => array(
921 'group_name' => 'Developer Preferences',
922 'group' => 'developer',
923 'name' => 'debug_enabled',
924 'config_key' => 'debug',
925 'type' => 'Boolean',
926 'quick_form_type' => 'YesNo',
927 'default' => 0,
928 'add' => '4.3',
929 'title' => 'Enable Debugging',
930 'is_domain' => 1,
931 'is_contact' => 0,
932 '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',
933 'prefetch' => 1,
934 'help_text' => 'Do not turn this on on production sites',
935 ),
936 'backtrace' => array(
937 'group_name' => 'Developer Preferences',
938 'group' => 'developer',
939 'name' => 'backtrace',
940 'type' => 'Boolean',
941 'quick_form_type' => 'YesNo',
942 'default' => 0,
943 'add' => '4.3',
944 'title' => 'Display Backtrace',
945 'is_domain' => 1,
946 'is_contact' => 0,
947 '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',
948 'prefetch' => 1,
949 ),
950 'fatalErrorTemplate' => array(
951 'group_name' => 'Developer Preferences',
952 'group' => 'developer',
953 'name' => 'fatalErrorTemplate',
954 'type' => 'String',
955 'quick_form_type' => 'Element',
956 'html_type' => 'text',
957 'default' => 'CRM/common/fatal.tpl',
958 'add' => '4.3',
959 'title' => 'Fatal Error Template',
960 'is_domain' => 1,
961 'is_contact' => 0,
962 'description' => 'Enter the path and filename for a custom Smarty template if you want to define your own screen for displaying fatal errors.',
963 'prefetch' => 1,
964 ),
965 'fatalErrorHandler' => array(
966 'group_name' => 'Developer Preferences',
967 'group' => 'developer',
968 'name' => 'fatalErrorHandler',
969 'type' => 'String',
970 'quick_form_type' => 'Element',
971 'html_type' => 'text',
972 'default' => '',
973 'add' => '4.3',
974 'title' => 'Fatal Error Handler',
975 'is_domain' => 1,
976 'is_contact' => 0,
977 '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.',
978 'prefetch' => 1,
979 ),
980 'uploadDir' => array(
981 'group_name' => 'Directory Preferences',
982 'group' => 'directory',
983 'name' => 'uploadDir',
984 'type' => 'Url',
985 'html_type' => 'Text',
986 'default' => '',
987 'add' => '4.1',
988 'prefetch' => 1,
989 'title' => 'Upload Directory',
990 'is_domain' => 1,
991 'is_contact' => 0,
992 'description' => '',
993 'help_text' => '',
994 ),
995 'imageUploadDir' => array(
996 'group_name' => 'Directory Preferences',
997 'group' => 'directory',
998 'name' => 'imageUploadDir',
999 'type' => 'Url',
1000 'html_type' => 'Text',
1001 'default' => '',
1002 'add' => '4.1',
1003 'prefetch' => 1,
1004 'title' => 'Image Directory',
1005 'is_domain' => 1,
1006 'is_contact' => 0,
1007 'description' => '',
1008 'help_text' => '',
1009 ),
1010 'customFileUploadDir' => array(
1011 'group_name' => 'Directory Preferences',
1012 'group' => 'directory',
1013 'name' => 'customFileUploadDir',
1014 'type' => 'Url',
1015 'html_type' => 'Text',
1016 'default' => '',
1017 'add' => '4.1',
1018 'prefetch' => 1,
1019 'title' => 'Custom Files Upload Directory',
1020 'is_domain' => 1,
1021 'is_contact' => 0,
1022 'description' => '',
1023 'help_text' => '',
1024 ),
1025 'customTemplateDir' => array(
1026 'group_name' => 'Directory Preferences',
1027 'group' => 'directory',
1028 'name' => 'customTemplateDir',
1029 'type' => 'Url',
1030 'html_type' => 'Text',
1031 'default' => '',
1032 'add' => '4.1',
1033 'prefetch' => 1,
1034 'title' => 'Custom Template Directory',
1035 'is_domain' => 1,
1036 'is_contact' => 0,
1037 'description' => '',
1038 'help_text' => '',
1039 ),
1040 'customPHPPathDir' => array(
1041 'group_name' => 'Directory Preferences',
1042 'group' => 'directory',
1043 'name' => 'customPHPPathDir',
1044 'type' => 'Url',
1045 'html_type' => 'Text',
1046 'default' => '',
1047 'add' => '4.1',
1048 'prefetch' => 1,
1049 'title' => 'Custom PHP Path',
1050 'is_domain' => 1,
1051 'is_contact' => 0,
1052 'description' => '',
1053 'help_text' => '',
1054 ),
1055 'extensionsDir' => array(
1056 'group_name' => 'Directory Preferences',
1057 'group' => 'directory',
1058 'name' => 'extensionsDir',
1059 'type' => 'Url',
1060 'html_type' => 'Text',
1061 'default' => '',
1062 'add' => '4.1',
1063 'prefetch' => 1,
1064 'title' => 'Extensions Directory',
1065 'is_domain' => 1,
1066 'is_contact' => 0,
1067 'description' => '',
1068 'help_text' => '',
1069 ),
1070 'event_enable_cart' => array(
1071 'name' => 'enable_cart',
1072 'group_name' => 'Event Preferences',
1073 'group' => 'event',
1074 'type' => 'String',
1075 'quick_form_type' => 'Element',
1076 'default' => 0,
1077 'add' => '4.1',
1078 'title' => 'Enable Event Cart',
1079 'is_domain' => 1,
1080 'is_contact' => 1,
1081 'description' => 'WRITE ME',
1082 'help_text' => 'WRITE ME',
1083 ),
1084 'monetaryThousandSeparator' => array(
1085 'group_name' => 'Localization Preferences',
1086 'group' => 'localization',
1087 'name' => 'monetaryThousandSeparator',
1088 'prefetch' => 1,
1089 'config_only' => 1,
1090 'type' => 'String',
1091 'quick_form_type' => 'Element',
1092 'html_type' => 'text',
1093 'html_attributes' => array(
1094 'size' => 2,
1095 ),
1096 'default' => ',',
1097 'add' => '4.3',
1098 'title' => 'Thousands Separator',
1099 'is_domain' => 1,
1100 'is_contact' => 0,
1101 'description' => '',
1102 'help_text' => '',
1103 ),
1104 'monetaryDecimalPoint' => array(
1105 'group_name' => 'Localization Preferences',
1106 'group' => 'localization',
1107 'name' => 'monetaryDecimalPoint',
1108 'prefetch' => 1,
1109 'config_only' => 1,
1110 'type' => 'String',
1111 'quick_form_type' => 'Element',
1112 'html_type' => 'text',
1113 'html_attributes' => array(
1114 'size' => 2,
1115 ),
1116 'default' => '.',
1117 'add' => '4.3',
1118 'title' => 'Decimal Delimiter',
1119 'is_domain' => 1,
1120 'is_contact' => 0,
1121 'description' => '',
1122 'help_text' => '',
1123 ),
1124 'moneyformat' => array(
1125 'group_name' => 'Localization Preferences',
1126 'group' => 'localization',
1127 'name' => 'moneyformat',
1128 'prefetch' => 1,
1129 'config_only' => 1,
1130 'type' => 'String',
1131 'quick_form_type' => 'Element',
1132 'html_type' => 'text',
1133 'default' => '%c %a',
1134 'add' => '4.3',
1135 'title' => 'Monetary Amount Display',
1136 'is_domain' => 1,
1137 'is_contact' => 0,
1138 'description' => '',
1139 'help_text' => '',
1140 ),
1141 'moneyvalueformat' => array(
1142 'group_name' => 'Localization Preferences',
1143 'group' => 'localization',
1144 'name' => 'moneyvalueformat',
1145 'prefetch' => 1,
1146 'config_only' => 1,
1147 'type' => 'String',
1148 'quick_form_type' => 'Element',
1149 'html_type' => 'text',
1150 'default' => '%!i',
1151 'add' => '4.3',
1152 'title' => 'Monetary Amount Display',
1153 'is_domain' => 1,
1154 'is_contact' => 0,
1155 'description' => '',
1156 'help_text' => '',
1157 ),
1158 'defaultCurrency' => array(
1159 'group_name' => 'Localization Preferences',
1160 'group' => 'localization',
1161 'name' => 'defaultCurrency',
1162 'prefetch' => 1,
1163 'config_only' => 1,
1164 'type' => 'String',
1165 'quick_form_type' => 'Element',
1166 'html_type' => 'text',
1167 'html_attributes' => array(
1168 'size' => 2,
1169 ),
1170 'default' => 'USD',
1171 'add' => '4.3',
1172 'title' => 'Default Currency',
1173 'is_domain' => 1,
1174 'is_contact' => 0,
1175 'description' => 'Default currency assigned to contributions and other monetary transactions.',
1176 'help_text' => '',
1177 ),
1178 'defaultContactCountry' => array(
1179 'group_name' => 'Localization Preferences',
1180 'group' => 'localization',
1181 'name' => 'defaultContactCountry',
1182 'prefetch' => 1,
1183 'config_only' => 1,
1184 'type' => 'String',
1185 'quick_form_type' => 'Element',
1186 'html_type' => 'text',
1187 'html_attributes' => array(
1188 'size' => 4,
1189 ),
1190 'default' => '1228',
1191 'add' => '4.4',
1192 'title' => 'Default Country',
1193 'is_domain' => 1,
1194 'is_contact' => 0,
1195 'description' => 'This value is selected by default when adding a new contact address.',
1196 'help_text' => '',
1197 ),
1198 'countryLimit' => array(
1199 'group_name' => 'Localization Preferences',
1200 'group' => 'localization',
1201 'name' => 'countryLimit',
1202 'prefetch' => 1,
1203 'config_only' => 1,
1204 'type' => 'Array',
1205 'quick_form_type' => 'Element',
1206 'html_type' => 'advmultiselect',
1207 'html_attributes' => array(
1208 'size' => 5,
1209 'style' => 'width:150px',
1210 'class' => 'advmultiselect',
1211 ),
1212 'default' => 'null',
1213 'add' => '4.3',
1214 'title' => 'Available Countries',
1215 'is_domain' => 1,
1216 'is_contact' => 0,
1217 'description' => '',
1218 'help_text' => '',
1219 ),
1220 'provinceLimit' => array(
1221 'group_name' => 'Localization Preferences',
1222 'group' => 'localization',
1223 'name' => 'provinceLimit',
1224 'prefetch' => 1,
1225 'config_only' => 1,
1226 'type' => 'Array',
1227 'quick_form_type' => 'Element',
1228 'html_type' => 'advmultiselect',
1229 'html_attributes' => array(
1230 'size' => 5,
1231 'style' => 'width:150px',
1232 'class' => 'advmultiselect',
1233 ),
1234 'default' => 'null',
1235 'add' => '4.3',
1236 'title' => 'Available States and Provinces',
1237 'is_domain' => 1,
1238 'is_contact' => 0,
1239 'description' => '',
1240 'help_text' => '',
1241 ),
1242 'inheritLocale' => array(
1243 'group_name' => 'Localization Preferences',
1244 'group' => 'localization',
1245 'name' => 'inheritLocale',
1246 'prefetch' => 1,
1247 'config_only' => 1,
1248 'type' => 'Boolean',
1249 'quick_form_type' => 'YesNo',
1250 'default' => 0,
1251 'add' => '4.3',
1252 'title' => 'Inherit CMS Language',
1253 'is_domain' => 1,
1254 'is_contact' => 0,
1255 'description' => '',
1256 'help_text' => '',
1257 ),
1258 'dateformatDatetime' => array(
1259 'group_name' => 'Localization Preferences',
1260 'group' => 'localization',
1261 'name' => 'dateformatDatetime',
1262 'prefetch' => 1,
1263 'config_only' => 1,
1264 'type' => 'String',
1265 'default' => '%B %E%f, %Y %l:%M %P',
1266 'add' => '4.3',
1267 'title' => 'Complete Date and Time',
1268 'is_domain' => 1,
1269 'is_contact' => 0,
1270 'description' => '',
1271 'help_text' => '',
1272 ),
1273 'dateformatFull' => array(
1274 'group_name' => 'Localization Preferences',
1275 'group' => 'localization',
1276 'name' => 'dateformatFull',
1277 'prefetch' => 1,
1278 'config_only' => 1,
1279 'type' => 'String',
1280 'default' => '%B %E%f, %Y',
1281 'add' => '4.3',
1282 'title' => 'Complete Date',
1283 'is_domain' => 1,
1284 'is_contact' => 0,
1285 'description' => '',
1286 'help_text' => '',
1287 ),
1288 'dateformatPartial' => array(
1289 'group_name' => 'Localization Preferences',
1290 'group' => 'localization',
1291 'name' => 'dateformatPartial',
1292 'prefetch' => 1,
1293 'config_only' => 1,
1294 'type' => 'String',
1295 'default' => '%B %Y',
1296 'add' => '4.3',
1297 'title' => 'Month and Year',
1298 'is_domain' => 1,
1299 'is_contact' => 0,
1300 'description' => '',
1301 'help_text' => '',
1302 ),
1303 'lcMessages' => array(
1304 'group_name' => 'Localization Preferences',
1305 'group' => 'localization',
1306 'name' => 'lcMessages',
1307 'prefetch' => 1,
1308 'config_only' => 1,
1309 'type' => 'String',
1310 'default' => 'en_US',
1311 'add' => '4.3',
1312 'title' => 'Default Language',
1313 'is_domain' => 1,
1314 'is_contact' => 0,
1315 'description' => '',
1316 'help_text' => '',
1317 ),
1318 'profile_double_optin' => array(
1319 'group_name' => 'Mailing Preferences',
1320 'group' => 'mailing',
1321 'name' => 'profile_double_optin',
1322 'type' => 'Integer',
1323 'html_type' => 'checkbox',
1324 'default' => 0,
1325 'add' => '4.1',
1326 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1327 'is_domain' => 1,
1328 'is_contact' => 0,
1329 '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.',
1330 'help_text' => '',
1331 ),
1332 'track_civimail_replies' => array(
1333 'group_name' => 'Mailing Preferences',
1334 'group' => 'mailing',
1335 'name' => 'track_civimail_replies',
1336 'type' => 'Integer',
1337 'html_type' => 'checkbox',
1338 'default' => 0,
1339 'add' => '4.1',
1340 'title' => 'Track replies using VERP in Reply-To header',
1341 'is_domain' => 1,
1342 'is_contact' => 0,
1343 'description' => 'If checked, mailings will default to tracking replies using VERP-ed Reply-To. ',
1344 'help_text' => '',
1345 'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
1346 ),
1347 'civimail_workflow' => array(
1348 'group_name' => 'Mailing Preferences',
1349 'group' => 'mailing',
1350 'name' => 'civimail_workflow',
1351 'type' => 'Integer',
1352 'html_type' => 'checkbox',
1353 'default' => 0,
1354 'add' => '4.1',
1355 'title' => 'Use CiviMail Workflow',
1356 'is_domain' => 1,
1357 'is_contact' => 0,
1358 '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.',
1359 'help_text' => '',
1360 ),
1361 'civimail_server_wide_lock' => array(
1362 'group_name' => 'Mailing Preferences',
1363 'group' => 'mailing',
1364 'name' => 'civimail_server_wide_lock',
1365 'type' => 'Integer',
1366 'html_type' => 'checkbox',
1367 'default' => 0,
1368 'add' => '4.1',
1369 'title' => 'Lock Mails Server-Wide for Mail Sending',
1370 'is_domain' => 1,
1371 'is_contact' => 0,
1372 'description' => '',
1373 'help_text' => '',
1374 ),
1375 'mailing_backend' => array(
1376 'group_name' => 'Mailing Preferences',
1377 'group' => 'mailing',
1378 'name' => 'mailing_backend',
1379 'type' => 'Array',
1380 'html_type' => 'checkbox',
1381 'default' => 0,
1382 'add' => '4.1',
1383 'title' => 'Mailing Backend',
1384 'is_domain' => 1,
1385 'is_contact' => 0,
1386 'description' => '',
1387 'help_text' => '',
1388 ),
1389 'profile_add_to_group_double_optin' => array(
1390 'group_name' => 'Mailing Preferences',
1391 'group' => 'mailing',
1392 'name' => 'profile_add_to_group_double_optin',
1393 'type' => 'Integer',
1394 'html_type' => 'checkbox',
1395 'default' => 0,
1396 'add' => '4.1',
1397 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1398 'is_domain' => 1,
1399 'is_contact' => 0,
1400 '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.',
1401 'help_text' => '',
1402 ),
1403 'disable_mandatory_tokens_check' => array(
1404 'group_name' => 'Mailing Preferences',
1405 'group' => 'mailing',
1406 'name' => 'disable_mandatory_tokens_check',
1407 'type' => 'Integer',
1408 'html_type' => 'checkbox',
1409 'default' => 0,
1410 'add' => '4.4',
1411 'title' => 'Disable check for mandatory tokens',
1412 'is_domain' => 1,
1413 'is_contact' => 0,
1414 '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.',
1415 'help_text' => '',
1416 ),
1417 'dedupe_email_default' => array(
1418 'group_name' => 'Mailing Preferences',
1419 'group' => 'mailing',
1420 'name' => 'dedupe_email_default',
1421 'type' => 'Integer',
1422 'html_type' => 'checkbox',
1423 'default' => 1,
1424 'add' => '4.5',
1425 'title' => 'CiviMail dedupes e-mail addresses by default',
1426 'is_domain' => 1,
1427 'is_contact' => 0,
1428 'description' => 'Set the \"dedupe e-mail\" option when sending a new mailing to \"true\" by default.',
1429 'help_text' => '',
1430 ),
1431 'hash_mailing_url' => array(
1432 'group_name' => 'Mailing Preferences',
1433 'group' => 'mailing',
1434 'name' => 'hash_mailing_url',
1435 'type' => 'Integer',
1436 'html_type' => 'checkbox',
1437 'default' => 0,
1438 'add' => '4.5',
1439 'title' => 'Hashed Mailing URL\'s',
1440 'is_domain' => 1,
1441 'is_contact' => 0,
1442 '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',
1443 'help_text' => '',
1444 ),
1445 'default_renewal_contribution_page' => array(
1446 'group_name' => 'Member Preferences',
1447 'group' => 'member',
1448 'name' => 'default_renewal_contribution_page',
1449 'type' => 'Integer',
1450 'html_type' => 'Select',
1451 'default' => '',
1452 'pseudoconstant' => array(
1453 'name' => 'contributionPage',
1454 ),
1455 'add' => '4.1',
1456 'title' => 'Default online membership renewal page',
1457 'is_domain' => 1,
1458 'is_contact' => 0,
1459 '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.',
1460 'help_text' => '',
1461 ),
1462 'is_enabled' => array(
1463 'group_name' => 'Multi Site Preferences',
1464 'group' => 'multisite',
1465 'name' => 'is_enabled',
1466 'title' => 'Multisite Is enabled',
1467 'type' => 'Integer',
1468 'default' => '',
1469 'add' => '4.1',
1470 'is_domain' => 1,
1471 'is_contact' => 0,
1472 'description' => 'Multisite is enabled',
1473 'help_text' => '',
1474 ),
1475 'domain_group_id' => array(
1476 'group_name' => 'Multi Site Preferences',
1477 'group' => 'multisite',
1478 'name' => 'domain_group_id',
1479 'title' => 'Multisite Domain Group',
1480 'type' => 'Integer',
1481 'default' => '',
1482 'add' => '4.1',
1483 'is_domain' => 1,
1484 'is_contact' => 0,
1485 'description' => '',
1486 'help_text' => '',
1487 ),
1488 'event_price_set_domain_id' => array(
1489 'group_name' => 'Multi Site Preferences',
1490 'group' => 'multisite',
1491 'name' => 'event_price_set_domain_id',
1492 'title' => 'Domain Event Price Set',
1493 'type' => 'Integer',
1494 'default' => '',
1495 'add' => '4.1',
1496 'is_domain' => 1,
1497 'is_contact' => 0,
1498 'description' => '',
1499 'help_text' => '',
1500 ),
1501 'uniq_email_per_site' => array(
1502 'group_name' => 'Multi Site Preferences',
1503 'group' => 'multisite',
1504 'name' => 'uniq_email_per_site',
1505 'type' => 'Integer',
1506 'title' => 'Unique Email per Domain?',
1507 'default' => '',
1508 'add' => '4.1',
1509 'is_domain' => 1,
1510 'is_contact' => 0,
1511 'description' => '',
1512 'help_text' => '',
1513 ),
1514 'search_autocomplete_count' => array(
1515 'group_name' => 'Search Preferences',
1516 'group' => 'Search Preferences',
1517 'name' => 'search_autocomplete_count',
1518 'prefetch' => 0,
1519 'type' => 'Integer',
1520 'quick_form_type' => 'Element',
1521 'html_type' => 'text',
1522 'html_attributes' => array(
1523 'size' => 2,
1524 'maxlength' => 2,
1525 ),
1526 'default' => 10,
1527 'add' => '4.3',
1528 'title' => 'Autocomplete Results',
1529 'is_domain' => 1,
1530 'is_contact' => 0,
1531 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
1532 'help_text' => '',
1533 ),
1534 'enable_innodb_fts' => array(
1535 'group_name' => 'Search Preferences',
1536 'group' => 'Search Preferences',
1537 'name' => 'enable_innodb_fts',
1538 'prefetch' => 0,
1539 'type' => 'Boolean',
1540 'quick_form_type' => 'YesNo',
1541 'default' => 0,
1542 'add' => '4.4',
1543 'title' => 'InnoDB Full Text Search',
1544 'is_domain' => 1,
1545 'is_contact' => 0,
1546 'description' => 'Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)',
1547 'help_text' => '',
1548 'on_change' => array(
1549 '0' => array(
1550 '0' => 'CRM_Core_InnoDBIndexer',
1551 '1' => 'onToggleFts',
1552 ),
1553 ),
1554 ),
1555 'fts_query_mode' => array(
1556 'group_name' => 'Search Preferences',
1557 'group' => 'Search Preferences',
1558 'name' => 'fts_query_mode',
1559 'prefetch' => 0,
1560 'type' => 'String',
1561 'quick_form_type' => 'Element',
1562 'html_attributes' => array(
1563 'size' => 64,
1564 'maxlength' => 64,
1565 ),
1566 'html_type' => 'Text',
1567 'default' => 'simple',
1568 'add' => '4.5',
1569 'title' => 'How to handle full-tet queries',
1570 'is_domain' => 1,
1571 'is_contact' => 0,
1572 'description' => '',
1573 'help_text' => '',
1574 ),
1575 'userFrameworkResourceURL' => array(
1576 'group' => 'url',
1577 'group_name' => 'URL Preferences',
1578 'name' => 'userFrameworkResourceURL',
1579 'title' => 'Script and CSS Resources URL',
1580 'type' => 'String',
1581 'default' => '',
1582 'add' => '4.1',
1583 'prefetch' => 1,
1584 'is_domain' => 1,
1585 'is_contact' => 0,
1586 'description' => 'CiviCRM Resource URL',
1587 'help_text' => '',
1588 'validate_callback' => 'CRM_Utils_Rule::url',
1589 ),
1590 'imageUploadURL' => array(
1591 'group' => 'url',
1592 'group_name' => 'URL Preferences',
1593 'title' => 'Image URL Prefix',
1594 'name' => 'imageUploadURL',
1595 'type' => 'String',
1596 'default' => '',
1597 'add' => '4.1',
1598 'prefetch' => 1,
1599 'is_domain' => 1,
1600 'is_contact' => 0,
1601 'description' => 'Image Upload URL',
1602 'help_text' => '',
1603 'validate_callback' => 'CRM_Utils_Rule::url',
1604 ),
1605 'customCSSURL' => array(
1606 'group' => 'url',
1607 'group_name' => 'URL Preferences',
1608 'name' => 'customCSSURL',
1609 'title' => 'Custom CSS',
1610 'type' => 'String',
1611 'default' => '',
1612 'add' => '4.1',
1613 'prefetch' => 1,
1614 'is_domain' => 1,
1615 'is_contact' => 0,
1616 'description' => 'Custom CiviCRM CSS URL',
1617 'help_text' => '',
1618 'validate_callback' => 'CRM_Utils_Rule::url',
1619 ),
1620 ),
1621 );
1622
1623 return $expectedResult;
1624 }
1625
1626 /*
1627 * This example has been generated from the API test suite.
1628 * The test that created it is called "testGetFields"
1629 * and can be found at:
1630 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SettingTest.php
1631 *
1632 * You can see the outcome of the API tests at
1633 * https://test.civicrm.org/job/CiviCRM-master-git/
1634 *
1635 * To Learn about the API read
1636 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
1637 *
1638 * Browse the api on your own site with the api explorer
1639 * http://MYSITE.ORG/path/to/civicrm/api
1640 *
1641 * Read more about testing here
1642 * http://wiki.civicrm.org/confluence/display/CRM/Testing
1643 *
1644 * API Standards documentation:
1645 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
1646 */