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