Cleanup GenerateData.php and make it possible to add contacts to an existing db
[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 ),
708 'debug_enabled' => array(
6a488035
TO
709 'group_name' => 'Developer Preferences',
710 'group' => 'developer',
711 'name' => 'debug_enabled',
712 'config_only' => 1,
713 'config_key' => 'debug',
714 'type' => 'Boolean',
715 'quick_form_type' => 'YesNo',
716 'default' => 0,
717 'add' => '4.3',
718 'title' => 'Enable Debugging',
719 'is_domain' => 1,
720 'is_contact' => 0,
53ca8fd7 721 '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
722 'prefetch' => 1,
723 'help_text' => 'Do not turn this on on production sites',
724 ),
53ca8fd7 725 'userFrameworkLogging' => array(
6a488035
TO
726 'group_name' => 'Developer Preferences',
727 'group' => 'developer',
728 'name' => 'userFrameworkLogging',
729 'config_only' => 1,
730 'type' => 'Boolean',
731 'quick_form_type' => 'YesNo',
732 'default' => 0,
733 'add' => '4.3',
734 'title' => 'Enable Drupal Watchdog Logging',
735 'is_domain' => 1,
736 'is_contact' => 0,
737 'description' => 'Set this value to Yes if you want CiviCRM error/debugging messages to also appear in Drupal error logs',
738 'prefetch' => 1,
53ca8fd7 739 'help_text' => 'Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS' error log.
740In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled)',
6a488035 741 ),
53ca8fd7 742 'backtrace' => array(
6a488035
TO
743 'group_name' => 'Developer Preferences',
744 'group' => 'developer',
745 'name' => 'backtrace',
746 'config_only' => 1,
747 'type' => 'Boolean',
748 'quick_form_type' => 'YesNo',
749 'default' => 0,
750 'add' => '4.3',
751 'title' => 'Display Backtrace',
752 'is_domain' => 1,
753 'is_contact' => 0,
754 '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',
755 'prefetch' => 1,
756 ),
53ca8fd7 757 'fatalErrorTemplate' => array(
6a488035
TO
758 'group_name' => 'Developer Preferences',
759 'group' => 'developer',
760 'name' => 'fatalErrorTemplate',
761 'config_only' => 1,
762 'type' => 'String',
763 'quick_form_type' => 'text',
764 'default' => 'CRM/common/fatal.tpl',
765 'add' => '4.3',
766 'title' => 'Fatal Error Template',
767 'is_domain' => 1,
768 'is_contact' => 0,
769 'description' => 'Enter the path and filename for a custom Smarty template if you want to define your own screen for displaying fatal errors.',
770 'prefetch' => 1,
771 ),
53ca8fd7 772 'fatalErrorHandler' => array(
6a488035
TO
773 'group_name' => 'Developer Preferences',
774 'group' => 'developer',
775 'name' => 'fatalErrorHandler',
776 'config_only' => 1,
777 'type' => 'String',
778 'quick_form_type' => 'text',
779 'default' => 'null',
780 'add' => '4.3',
781 'title' => 'Fatal Error Handler',
782 'is_domain' => 1,
783 'is_contact' => 0,
784 '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.',
785 'prefetch' => 1,
786 ),
53ca8fd7 787 'uploadDir' => array(
6a488035
TO
788 'group_name' => 'Directory Preferences',
789 'group' => 'directory',
790 'name' => 'uploadDir',
791 'type' => 'Url',
792 'html_type' => 'Text',
793 'default' => '',
794 'add' => '4.1',
795 'prefetch' => 1,
796 'title' => '',
797 'is_domain' => 1,
798 'is_contact' => 0,
799 'description' => '',
800 'help_text' => 'If set, new contacts that are created when signing a petition are assigned a tag of this name.',
801 ),
53ca8fd7 802 'imageUploadDir' => array(
6a488035
TO
803 'group_name' => 'Directory Preferences',
804 'group' => 'directory',
805 'name' => 'imageUploadDir',
806 'type' => 'Url',
807 'html_type' => 'Text',
808 'default' => '',
809 'add' => '4.1',
810 'prefetch' => 1,
811 'title' => '',
812 'is_domain' => 1,
813 'is_contact' => 0,
814 'description' => '',
815 'help_text' => '',
816 ),
53ca8fd7 817 'customFileUploadDir' => array(
6a488035
TO
818 'group_name' => 'Directory Preferences',
819 'group' => 'directory',
820 'name' => 'customFileUploadDir',
821 'type' => 'Url',
822 'html_type' => 'Text',
823 'default' => '',
824 'add' => '4.1',
825 'prefetch' => 1,
826 'title' => '',
827 'is_domain' => 1,
828 'is_contact' => 0,
829 'description' => '',
830 'help_text' => '',
831 ),
53ca8fd7 832 'customTemplateDir' => array(
6a488035
TO
833 'group_name' => 'Directory Preferences',
834 'group' => 'directory',
835 'name' => 'customTemplateDir',
836 'type' => 'Url',
837 'html_type' => 'Text',
838 'default' => '',
839 'add' => '4.1',
840 'prefetch' => 1,
841 'title' => '',
842 'is_domain' => 1,
843 'is_contact' => 0,
844 'description' => '',
845 'help_text' => '',
846 ),
53ca8fd7 847 'customPHPPathDir' => array(
6a488035
TO
848 'group_name' => 'Directory Preferences',
849 'group' => 'directory',
850 'name' => 'customPHPPathDir',
851 'type' => 'Url',
852 'html_type' => 'Text',
853 'default' => '',
854 'add' => '4.1',
855 'prefetch' => 1,
856 'title' => '',
857 'is_domain' => 1,
858 'is_contact' => 0,
859 'description' => '',
860 'help_text' => '',
861 ),
53ca8fd7 862 'extensionsDir' => array(
6a488035
TO
863 'group_name' => 'Directory Preferences',
864 'group' => 'directory',
865 'name' => 'extensionsDir',
866 'type' => 'Url',
867 'html_type' => 'Text',
868 'default' => '',
869 'add' => '4.1',
870 'prefetch' => 1,
871 'title' => '',
872 'is_domain' => 1,
873 'is_contact' => 0,
874 'description' => '',
875 'help_text' => '',
876 ),
53ca8fd7 877 'event_enable_cart' => array(
6a488035
TO
878 'name' => 'enable_cart',
879 'group_name' => 'Event Preferences',
880 'group' => 'event',
881 'type' => 'String',
882 'quick_form_type' => 'Element',
883 'default' => 0,
884 'add' => '4.1',
885 'title' => 'Enable Event Cart',
886 'is_domain' => 1,
887 'is_contact' => 1,
888 'description' => 'WRITE ME',
889 'help_text' => 'WRITE ME',
890 ),
53ca8fd7 891 'monetaryThousandSeparator' => array(
6a488035
TO
892 'group_name' => 'Localization Preferences',
893 'group' => 'localization',
894 'name' => 'monetaryThousandSeparator',
895 'prefetch' => 1,
896 'config_only' => 1,
897 'type' => 'String',
898 'quick_form_type' => 'Element',
899 'html_type' => 'text',
53ca8fd7 900 'html_attributes' => array(
6a488035
TO
901 'size' => 2,
902 ),
903 'default' => ',',
904 'add' => '4.3',
905 'title' => 'Thousands Separator',
906 'is_domain' => 1,
907 'is_contact' => 0,
908 'description' => '',
909 'help_text' => '',
910 ),
53ca8fd7 911 'monetaryDecimalPoint' => array(
6a488035
TO
912 'group_name' => 'Localization Preferences',
913 'group' => 'localization',
914 'name' => 'monetaryDecimalPoint',
915 'prefetch' => 1,
916 'config_only' => 1,
917 'type' => 'String',
918 'quick_form_type' => 'Element',
919 'html_type' => 'text',
53ca8fd7 920 'html_attributes' => array(
6a488035
TO
921 'size' => 2,
922 ),
923 'default' => '.',
924 'add' => '4.3',
925 'title' => 'Decimal Delimiter',
926 'is_domain' => 1,
927 'is_contact' => 0,
928 'description' => '',
929 'help_text' => '',
930 ),
53ca8fd7 931 'moneyformat' => array(
6a488035
TO
932 'group_name' => 'Localization Preferences',
933 'group' => 'localization',
934 'name' => 'moneyformat',
935 'prefetch' => 1,
936 'config_only' => 1,
937 'type' => 'String',
938 'quick_form_type' => 'Element',
939 'html_type' => 'text',
940 'default' => '%c %a',
941 'add' => '4.3',
942 'title' => 'Monetary Amount Display',
943 'is_domain' => 1,
944 'is_contact' => 0,
945 'description' => '',
946 'help_text' => '',
947 ),
53ca8fd7 948 'moneyvalueformat' => array(
6a488035
TO
949 'group_name' => 'Localization Preferences',
950 'group' => 'localization',
951 'name' => 'moneyvalueformat',
952 'prefetch' => 1,
953 'config_only' => 1,
954 'type' => 'String',
955 'quick_form_type' => 'Element',
956 'html_type' => 'text',
957 'default' => '%!i',
958 'add' => '4.3',
959 'title' => 'Monetary Amount Display',
960 'is_domain' => 1,
961 'is_contact' => 0,
962 'description' => '',
963 'help_text' => '',
964 ),
53ca8fd7 965 'defaultCurrency' => array(
6a488035
TO
966 'group_name' => 'Localization Preferences',
967 'group' => 'localization',
968 'name' => 'defaultCurrency',
969 'prefetch' => 1,
970 'config_only' => 1,
971 'type' => 'String',
972 'quick_form_type' => 'Element',
973 'html_type' => 'text',
53ca8fd7 974 'html_attributes' => array(
6a488035
TO
975 'size' => 2,
976 ),
977 'default' => 'USD',
978 'add' => '4.3',
979 'title' => 'Default Currency',
980 'is_domain' => 1,
981 'is_contact' => 0,
982 'description' => 'Default currency assigned to contributions and other monetary transactions.',
983 'help_text' => '',
984 ),
53ca8fd7 985 'countryLimit' => array(
6a488035
TO
986 'group_name' => 'Localization Preferences',
987 'group' => 'localization',
988 'name' => 'countryLimit',
989 'prefetch' => 1,
990 'config_only' => 1,
991 'type' => 'Array',
992 'quick_form_type' => 'Element',
993 'html_type' => 'advmultiselect',
53ca8fd7 994 'html_attributes' => array(
6a488035
TO
995 'size' => 5,
996 'style' => 'width:150px',
997 'class' => 'advmultiselect',
998 ),
999 'default' => 'null',
1000 'add' => '4.3',
1001 'title' => 'Available Countries',
1002 'is_domain' => 1,
1003 'is_contact' => 0,
1004 'description' => '',
1005 'help_text' => '',
1006 ),
53ca8fd7 1007 'provinceLimit' => array(
6a488035
TO
1008 'group_name' => 'Localization Preferences',
1009 'group' => 'localization',
1010 'name' => 'provinceLimit',
1011 'prefetch' => 1,
1012 'config_only' => 1,
1013 'type' => 'Array',
1014 'quick_form_type' => 'Element',
1015 'html_type' => 'advmultiselect',
53ca8fd7 1016 'html_attributes' => array(
6a488035
TO
1017 'size' => 5,
1018 'style' => 'width:150px',
1019 'class' => 'advmultiselect',
1020 ),
1021 'default' => 'null',
1022 'add' => '4.3',
1023 'title' => 'Available States and Provinces',
1024 'is_domain' => 1,
1025 'is_contact' => 0,
1026 'description' => '',
1027 'help_text' => '',
1028 ),
53ca8fd7 1029 'inheritLocale' => array(
6a488035
TO
1030 'group_name' => 'Localization Preferences',
1031 'group' => 'localization',
1032 'name' => 'inheritLocale',
1033 'prefetch' => 1,
1034 'config_only' => 1,
1035 'type' => 'Boolean',
1036 'quick_form_type' => 'YesNo',
1037 'default' => 0,
1038 'add' => '4.3',
1039 'title' => 'Inherit CMS Language',
1040 'is_domain' => 1,
1041 'is_contact' => 0,
1042 'description' => '',
1043 'help_text' => '',
1044 ),
53ca8fd7 1045 'dateformatDatetime' => array(
6a488035
TO
1046 'group_name' => 'Localization Preferences',
1047 'group' => 'localization',
1048 'name' => 'dateformatDatetime',
1049 'prefetch' => 1,
1050 'config_only' => 1,
1051 'type' => 'String',
1052 'default' => '%B %E%f, %Y %l:%M %P',
1053 'add' => '4.3',
1054 'title' => 'Complete Date and Time',
1055 'is_domain' => 1,
1056 'is_contact' => 0,
1057 'description' => '',
1058 'help_text' => '',
1059 ),
53ca8fd7 1060 'dateformatFull' => array(
6a488035
TO
1061 'group_name' => 'Localization Preferences',
1062 'group' => 'localization',
1063 'name' => 'dateformatFull',
1064 'prefetch' => 1,
1065 'config_only' => 1,
1066 'type' => 'String',
1067 'default' => '%B %E%f, %Y',
1068 'add' => '4.3',
1069 'title' => 'Complete Date',
1070 'is_domain' => 1,
1071 'is_contact' => 0,
1072 'description' => '',
1073 'help_text' => '',
1074 ),
53ca8fd7 1075 'dateformatPartial' => array(
6a488035
TO
1076 'group_name' => 'Localization Preferences',
1077 'group' => 'localization',
1078 'name' => 'dateformatPartial',
1079 'prefetch' => 1,
1080 'config_only' => 1,
1081 'type' => 'String',
1082 'default' => '%B %Y',
1083 'add' => '4.3',
1084 'title' => 'Month and Year',
1085 'is_domain' => 1,
1086 'is_contact' => 0,
1087 'description' => '',
1088 'help_text' => '',
1089 ),
53ca8fd7 1090 'lcMessages' => array(
6a488035
TO
1091 'group_name' => 'Localization Preferences',
1092 'group' => 'localization',
1093 'name' => 'lcMessages',
1094 'prefetch' => 1,
1095 'config_only' => 1,
1096 'type' => 'String',
1097 'default' => 'en_US',
1098 'add' => '4.3',
1099 'title' => 'Default Language',
1100 'is_domain' => 1,
1101 'is_contact' => 0,
1102 'description' => '',
1103 'help_text' => '',
1104 ),
53ca8fd7 1105 'profile_double_optin' => array(
6a488035
TO
1106 'group_name' => 'Mailing Preferences',
1107 'group' => 'mailing',
1108 'name' => 'profile_double_optin',
1109 'type' => 'Integer',
1110 'html_type' => 'checkbox',
1111 'default' => 0,
1112 'add' => '4.1',
1113 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1114 'is_domain' => 1,
1115 'is_contact' => 0,
1116 '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.',
1117 'help_text' => '',
1118 ),
53ca8fd7 1119 'track_civimail_replies' => array(
6a488035
TO
1120 'group_name' => 'Mailing Preferences',
1121 'group' => 'mailing',
1122 'name' => 'track_civimail_replies',
1123 'type' => 'Integer',
1124 'html_type' => 'checkbox',
1125 'default' => 0,
1126 'add' => '4.1',
1127 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1128 'is_domain' => 1,
1129 'is_contact' => 0,
1130 '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.',
1131 'help_text' => '',
1132 'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
1133 ),
53ca8fd7 1134 'civimail_workflow' => array(
6a488035
TO
1135 'group_name' => 'Mailing Preferences',
1136 'group' => 'mailing',
1137 'name' => 'civimail_workflow',
1138 'type' => 'Integer',
1139 'html_type' => 'checkbox',
1140 'default' => 0,
1141 'add' => '4.1',
1142 'title' => '',
1143 'is_domain' => 1,
1144 'is_contact' => 0,
1145 '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.',
1146 'help_text' => '',
1147 ),
53ca8fd7 1148 'civimail_server_wide_lock' => array(
6a488035
TO
1149 'group_name' => 'Mailing Preferences',
1150 'group' => 'mailing',
1151 'name' => 'civimail_server_wide_lock',
1152 'type' => 'Integer',
1153 'html_type' => 'checkbox',
1154 'default' => 0,
1155 'add' => '4.1',
1156 'title' => '',
1157 'is_domain' => 1,
1158 'is_contact' => 0,
1159 'description' => '',
1160 'help_text' => '',
1161 ),
53ca8fd7 1162 'mailing_backend' => array(
6a488035
TO
1163 'group_name' => 'Mailing Preferences',
1164 'group' => 'mailing',
1165 'name' => 'mailing_backend',
1166 'type' => 'Array',
1167 'html_type' => 'checkbox',
1168 'default' => 0,
1169 'add' => '4.1',
1170 'title' => '',
1171 'is_domain' => 1,
1172 'is_contact' => 0,
1173 'description' => '',
1174 'help_text' => '',
1175 ),
53ca8fd7 1176 'profile_add_to_group_double_optin' => array(
6a488035
TO
1177 'group_name' => 'Mailing Preferences',
1178 'group' => 'mailing',
1179 'name' => 'profile_add_to_group_double_optin',
1180 'type' => 'Integer',
1181 'html_type' => 'checkbox',
1182 'default' => 0,
1183 'add' => '4.1',
1184 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1185 'is_domain' => 1,
1186 'is_contact' => 0,
1187 '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.',
1188 'help_text' => '',
1189 ),
53ca8fd7 1190 'default_renewal_contribution_page' => array(
6a488035
TO
1191 'group_name' => 'Member Preferences',
1192 'group' => 'member',
1193 'name' => 'default_renewal_contribution_page',
1194 'type' => 'Integer',
1195 'html_type' => 'Select',
1196 'default' => '',
53ca8fd7 1197 'pseudoconstant' => array(
6a488035
TO
1198 'name' => 'contributionPage',
1199 ),
1200 'add' => '4.1',
1201 'title' => 'Default online membership renewal page',
1202 'is_domain' => 1,
1203 'is_contact' => 0,
1204 '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.',
1205 'help_text' => '',
1206 ),
53ca8fd7 1207 'is_enabled' => array(
6a488035
TO
1208 'group_name' => 'Multi Site Preferences',
1209 'group' => 'multisite',
1210 'name' => 'is_enabled',
1211 'type' => 'Integer',
1212 'default' => '',
1213 'add' => '4.1',
1214 'is_domain' => 1,
1215 'is_contact' => 0,
1216 'description' => 'Multisite is enabled',
1217 'help_text' => '',
1218 ),
53ca8fd7 1219 'domain_group_id' => array(
6a488035
TO
1220 'group_name' => 'Multi Site Preferences',
1221 'group' => 'multisite',
1222 'name' => 'domain_group_id',
1223 'type' => 'Integer',
1224 'default' => '',
1225 'add' => '4.1',
1226 'is_domain' => 1,
1227 'is_contact' => 0,
1228 'description' => '',
1229 'help_text' => '',
1230 ),
53ca8fd7 1231 'event_price_set_domain_id' => array(
6a488035
TO
1232 'group_name' => 'Multi Site Preferences',
1233 'group' => 'multisite',
1234 'name' => 'event_price_set_domain_id',
1235 'type' => 'Integer',
1236 'default' => '',
1237 'add' => '4.1',
1238 'is_domain' => 1,
1239 'is_contact' => 0,
1240 'description' => '',
1241 'help_text' => '',
1242 ),
53ca8fd7 1243 'uniq_email_per_site' => array(
6a488035
TO
1244 'group_name' => 'Multi Site Preferences',
1245 'group' => 'multisite',
1246 'name' => 'uniq_email_per_site',
1247 'type' => 'Integer',
1248 'default' => '',
1249 'add' => '4.1',
1250 'is_domain' => 1,
1251 'is_contact' => 0,
1252 'description' => '',
1253 'help_text' => '',
1254 ),
53ca8fd7 1255 'search_autocomplete_count' => array(
6a488035
TO
1256 'group_name' => 'Search Preferences',
1257 'group' => 'Search Preferences',
1258 'name' => 'search_autocomplete_count',
1259 'prefetch' => 0,
1260 'type' => 'Integer',
1261 'quick_form_type' => 'Element',
1262 'html_type' => 'text',
53ca8fd7 1263 'html_attributes' => array(
6a488035
TO
1264 'size' => 2,
1265 'maxlength' => 2,
1266 ),
1267 'default' => 10,
1268 'add' => '4.3',
1269 'title' => 'Autocomplete Results',
1270 'is_domain' => 1,
1271 'is_contact' => 0,
1272 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
1273 'help_text' => '',
1274 ),
53ca8fd7 1275 'userFrameworkResourceURL' => array(
6a488035
TO
1276 'group' => 'UrlPreferences',
1277 'group_name' => 'url',
1278 'name' => 'userFrameworkResourceURL',
1279 'type' => 'String',
1280 'default' => '',
1281 'add' => '4.1',
1282 'prefetch' => 1,
1283 'is_domain' => 1,
1284 'is_contact' => 0,
1285 'description' => 'CiviCRM Resource URL',
1286 'help_text' => '',
1287 'validate_callback' => 'CRM_Utils_Rule::url',
1288 ),
53ca8fd7 1289 'imageUploadURL' => array(
6a488035
TO
1290 'group' => 'UrlPreferences',
1291 'group_name' => 'url',
1292 'name' => 'imageUploadURL',
1293 'type' => 'String',
1294 'default' => '',
1295 'add' => '4.1',
1296 'prefetch' => 1,
1297 'is_domain' => 1,
1298 'is_contact' => 0,
1299 'description' => 'Image Upload URL',
1300 'help_text' => '',
1301 'validate_callback' => 'CRM_Utils_Rule::url',
1302 ),
53ca8fd7 1303 'customCSSURL' => array(
6a488035
TO
1304 'group' => 'UrlPreferences',
1305 'group_name' => 'url',
1306 'name' => 'customCSSURL',
1307 'type' => 'String',
1308 'default' => '',
1309 'add' => '4.1',
1310 'prefetch' => 1,
1311 'is_domain' => 1,
1312 'is_contact' => 0,
1313 'description' => 'Custom CiviCRM CSS URL',
1314 'help_text' => '',
1315 'validate_callback' => 'CRM_Utils_Rule::url',
1316 ),
1317 ),
1318);
1319
1320 return $expectedResult ;
1321}
1322
1323
1324/*
1325* This example has been generated from the API test suite. The test that created it is called
1326*
1327* testGetFields and can be found in
1328* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/SettingTest.php
1329*
1330* You can see the outcome of the API tests at
1331* http://tests.dev.civicrm.org/trunk/results-api_v3
1332*
1333* To Learn about the API read
1334* http://book.civicrm.org/developer/current/techniques/api/
1335*
1336* and review the wiki at
1337* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
1338*
1339* Read more about testing here
1340* http://wiki.civicrm.org/confluence/display/CRM/Testing
1341*
1342* API Standards documentation:
1343* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
1344*/