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