Merge pull request #1325 from davecivicrm/GeneratedFix
[civicrm-core.git] / api / v3 / examples / SettingGetfields.php
CommitLineData
6a488035 1<?php
fb32de45 2/**
3 * Test Generated example of using setting getfields API
4 * Demonstrate return from getfields - see subfolder for variants *
6a488035
TO
5 */
6function setting_getfields_example(){
fb32de45 7$params = array();
6a488035 8
fb32de45 9try{
10 $result = civicrm_api3('setting', 'getfields', $params);
11}
12catch (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}
6a488035 19
fb32de45 20return $result;
6a488035
TO
21}
22
fb32de45 23/**
6a488035
TO
24 * Function returns array of result expected from previous function
25 */
26function setting_getfields_expectedresult(){
27
53ca8fd7 28 $expectedResult = array(
6a488035
TO
29 'is_error' => 0,
30 'version' => 3,
fb32de45 31 'count' => 78,
53ca8fd7 32 'values' => array(
33 'address_standardization_provider' => array(
6a488035
TO
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 ),
53ca8fd7 47 'address_standardization_userid' => array(
6a488035
TO
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 ),
53ca8fd7 61 'address_standardization_url' => array(
6a488035
TO
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 ),
53ca8fd7 76 'tag_unconfirmed' => array(
6a488035
TO
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 ),
53ca8fd7 90 'petition_contacts' => array(
6a488035
TO
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 ),
53ca8fd7 104 'cvv_backoffice_required' => array(
6a488035
TO
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 ),
53ca8fd7 118 'contact_view_options' => array(
6a488035
TO
119 'group_name' => 'CiviCRM Preferences',
120 'group' => 'core',
121 'name' => 'contact_view_options',
122 'type' => 'String',
123 'html_type' => 'checkboxes',
53ca8fd7 124 'pseudoconstant' => array(
6a488035
TO
125 'optionGroupName' => 'contact_view_options',
126 ),
53ca8fd7 127 'default' => array(
6a488035
TO
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 ),
53ca8fd7 148 'contact_edit_options' => array(
6a488035
TO
149 'group_name' => 'CiviCRM Preferences',
150 'group' => 'core',
151 'name' => 'contact_edit_options',
152 'type' => 'String',
153 'html_type' => 'checkboxes',
53ca8fd7 154 'pseudoconstant' => array(
6a488035
TO
155 'optionGroupName' => 'contact_edit_options',
156 ),
53ca8fd7 157 'default' => array(
6a488035
TO
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 ),
53ca8fd7 177 'advanced_search_options' => array(
6a488035
TO
178 'group_name' => 'CiviCRM Preferences',
179 'name' => 'advanced_search_options',
180 'type' => 'String',
181 'html_type' => 'checkboxes',
53ca8fd7 182 'pseudoconstant' => array(
6a488035
TO
183 'optionGroupName' => 'advanced_search_options',
184 ),
53ca8fd7 185 'default' => array(
6a488035
TO
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 ),
53ca8fd7 211 'user_dashboard_options' => array(
6a488035
TO
212 'group_name' => 'CiviCRM Preferences',
213 'group' => 'core',
214 'name' => 'user_dashboard_options',
215 'type' => 'String',
216 'html_type' => 'checkboxes',
53ca8fd7 217 'pseudoconstant' => array(
6a488035
TO
218 'optionGroupName' => 'user_dashboard_options',
219 ),
53ca8fd7 220 'default' => array(
6a488035
TO
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 ),
53ca8fd7 237 'address_options' => array(
6a488035
TO
238 'group_name' => 'CiviCRM Preferences',
239 'group' => 'core',
240 'name' => 'address_options',
241 'type' => 'String',
242 'html_type' => 'Text',
53ca8fd7 243 'pseudoconstant' => array(
6a488035
TO
244 'optionGroupName' => 'address_options',
245 ),
53ca8fd7 246 'default' => array(
6a488035
TO
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 ),
53ca8fd7 263 'address_format' => array(
6a488035
TO
264 'group_name' => 'CiviCRM Preferences',
265 'group' => 'core',
266 'name' => 'address_format',
267 'type' => 'String',
24e06789 268 'html_type' => 'TextArea',
6a488035
TO
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 ),
53ca8fd7 282 'mailing_format' => array(
6a488035
TO
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 ),
53ca8fd7 301 'display_name_format' => array(
6a488035
TO
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 ),
53ca8fd7 315 'sort_name_format' => array(
6a488035
TO
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 ),
53ca8fd7 329 'editor_id' => array(
6a488035
TO
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 ),
53ca8fd7 343 'contact_ajax_check_similar' => array(
6a488035
TO
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 ),
53ca8fd7 357 'activity_assignee_notification' => array(
6a488035
TO
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 ),
53ca8fd7 371 'activity_assignee_notification_ics' => array(
6a488035
TO
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 ),
53ca8fd7 385 'contact_autocomplete_options' => array(
6a488035
TO
386 'group_name' => 'CiviCRM Preferences',
387 'group' => 'core',
388 'name' => 'contact_autocomplete_options',
389 'type' => 'String',
390 'html_type' => 'checkboxes',
53ca8fd7 391 'pseudoconstant' => array(
24e06789 392 'optionGroupName' => 'contact_autocomplete_options',
393 ),
53ca8fd7 394 'default' => array(
6a488035
TO
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 ),
53ca8fd7 410 'contact_reference_options' => array(
6a488035
TO
411 'group_name' => 'CiviCRM Preferences',
412 'group' => 'core',
413 'name' => 'contact_reference_options',
414 'type' => 'String',
415 'html_type' => 'checkboxes',
53ca8fd7 416 'pseudoconstant' => array(
6a488035
TO
417 'optionGroupName' => 'contact_reference_options',
418 ),
53ca8fd7 419 'default' => array(
6a488035
TO
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 ),
53ca8fd7 435 'max_attachments' => array(
6a488035
TO
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',
53ca8fd7 444 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 456 'maxFileSize' => array(
6a488035
TO
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',
53ca8fd7 465 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 477 'contact_undelete' => array(
6a488035
TO
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 ),
fb32de45 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 ),
53ca8fd7 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(
6a488035
TO
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.
533When 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 ),
53ca8fd7 536 'doNotAttachPDFReceipt' => array(
6a488035
TO
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 ),
53ca8fd7 552 'wkhtmltopdfPath' => array(
6a488035
TO
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',
53ca8fd7 561 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 573 'recaptchaPublicKey' => array(
6a488035
TO
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',
53ca8fd7 582 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 594 'recaptchaPrivateKey' => array(
6a488035
TO
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',
53ca8fd7 603 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 615 'dashboardCacheTimeout' => array(
6a488035
TO
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',
53ca8fd7 624 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 636 'checksumTimeout' => array(
6a488035
TO
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',
53ca8fd7 645 'html_attributes' => array(
6a488035
TO
646 'size' => 2,
647 'maxlength' => 8,
648 ),
649 'default' => 7,
650 'add' => '4.3',
fb32de45 651 'title' => 'Checksum Lifespan',
6a488035
TO
652 'is_domain' => 1,
653 'is_contact' => 0,
654 'description' => '',
655 'help_text' => '',
656 ),
53ca8fd7 657 'communityMessagesUrl' => array(
24e06789 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',
53ca8fd7 666 'html_attributes' => array(
24e06789 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 ),
53ca8fd7 678 'resCacheCode' => array(
6a488035
TO
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',
53ca8fd7 687 'html_attributes' => array(
6a488035
TO
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 ),
53ca8fd7 699 'verifySSL' => array(
6a488035
TO
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 ),
53ca8fd7 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 ),
d5f1ee75 729 'secondDegRelPermissions' => array(
fb32de45 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 ),
53ca8fd7 772 'debug_enabled' => array(
6a488035
TO
773 'group_name' => 'Developer Preferences',
774 'group' => 'developer',
775 'name' => 'debug_enabled',
776 'config_only' => 1,
777 'config_key' => 'debug',
778 'type' => 'Boolean',
779 'quick_form_type' => 'YesNo',
780 'default' => 0,
781 'add' => '4.3',
782 'title' => 'Enable Debugging',
783 'is_domain' => 1,
784 'is_contact' => 0,
fb32de45 785 '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
786 'prefetch' => 1,
787 'help_text' => 'Do not turn this on on production sites',
788 ),
53ca8fd7 789 'userFrameworkLogging' => array(
6a488035
TO
790 'group_name' => 'Developer Preferences',
791 'group' => 'developer',
792 'name' => 'userFrameworkLogging',
793 'config_only' => 1,
794 'type' => 'Boolean',
795 'quick_form_type' => 'YesNo',
796 'default' => 0,
797 'add' => '4.3',
798 'title' => 'Enable Drupal Watchdog Logging',
799 'is_domain' => 1,
800 'is_contact' => 0,
801 'description' => 'Set this value to Yes if you want CiviCRM error/debugging messages to also appear in Drupal error logs',
802 'prefetch' => 1,
fb32de45 803 'help_text' => 'Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS' error log.
804In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled)',
6a488035 805 ),
53ca8fd7 806 'backtrace' => array(
6a488035
TO
807 'group_name' => 'Developer Preferences',
808 'group' => 'developer',
809 'name' => 'backtrace',
810 'config_only' => 1,
811 'type' => 'Boolean',
812 'quick_form_type' => 'YesNo',
813 'default' => 0,
814 'add' => '4.3',
815 'title' => 'Display Backtrace',
816 'is_domain' => 1,
817 'is_contact' => 0,
818 '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',
819 'prefetch' => 1,
820 ),
53ca8fd7 821 'fatalErrorTemplate' => array(
6a488035
TO
822 'group_name' => 'Developer Preferences',
823 'group' => 'developer',
824 'name' => 'fatalErrorTemplate',
825 'config_only' => 1,
826 'type' => 'String',
827 'quick_form_type' => 'text',
828 'default' => 'CRM/common/fatal.tpl',
829 'add' => '4.3',
830 'title' => 'Fatal Error Template',
831 'is_domain' => 1,
832 'is_contact' => 0,
833 'description' => 'Enter the path and filename for a custom Smarty template if you want to define your own screen for displaying fatal errors.',
834 'prefetch' => 1,
835 ),
53ca8fd7 836 'fatalErrorHandler' => array(
6a488035
TO
837 'group_name' => 'Developer Preferences',
838 'group' => 'developer',
839 'name' => 'fatalErrorHandler',
840 'config_only' => 1,
841 'type' => 'String',
842 'quick_form_type' => 'text',
843 'default' => 'null',
844 'add' => '4.3',
845 'title' => 'Fatal Error Handler',
846 'is_domain' => 1,
847 'is_contact' => 0,
848 '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.',
849 'prefetch' => 1,
850 ),
53ca8fd7 851 'uploadDir' => array(
6a488035
TO
852 'group_name' => 'Directory Preferences',
853 'group' => 'directory',
854 'name' => 'uploadDir',
855 'type' => 'Url',
856 'html_type' => 'Text',
857 'default' => '',
858 'add' => '4.1',
859 'prefetch' => 1,
860 'title' => '',
861 'is_domain' => 1,
862 'is_contact' => 0,
863 'description' => '',
864 'help_text' => 'If set, new contacts that are created when signing a petition are assigned a tag of this name.',
865 ),
53ca8fd7 866 'imageUploadDir' => array(
6a488035
TO
867 'group_name' => 'Directory Preferences',
868 'group' => 'directory',
869 'name' => 'imageUploadDir',
870 'type' => 'Url',
871 'html_type' => 'Text',
872 'default' => '',
873 'add' => '4.1',
874 'prefetch' => 1,
875 'title' => '',
876 'is_domain' => 1,
877 'is_contact' => 0,
878 'description' => '',
879 'help_text' => '',
880 ),
53ca8fd7 881 'customFileUploadDir' => array(
6a488035
TO
882 'group_name' => 'Directory Preferences',
883 'group' => 'directory',
884 'name' => 'customFileUploadDir',
885 'type' => 'Url',
886 'html_type' => 'Text',
887 'default' => '',
888 'add' => '4.1',
889 'prefetch' => 1,
890 'title' => '',
891 'is_domain' => 1,
892 'is_contact' => 0,
893 'description' => '',
894 'help_text' => '',
895 ),
53ca8fd7 896 'customTemplateDir' => array(
6a488035
TO
897 'group_name' => 'Directory Preferences',
898 'group' => 'directory',
899 'name' => 'customTemplateDir',
900 'type' => 'Url',
901 'html_type' => 'Text',
902 'default' => '',
903 'add' => '4.1',
904 'prefetch' => 1,
905 'title' => '',
906 'is_domain' => 1,
907 'is_contact' => 0,
908 'description' => '',
909 'help_text' => '',
910 ),
53ca8fd7 911 'customPHPPathDir' => array(
6a488035
TO
912 'group_name' => 'Directory Preferences',
913 'group' => 'directory',
914 'name' => 'customPHPPathDir',
915 'type' => 'Url',
916 'html_type' => 'Text',
917 'default' => '',
918 'add' => '4.1',
919 'prefetch' => 1,
920 'title' => '',
921 'is_domain' => 1,
922 'is_contact' => 0,
923 'description' => '',
924 'help_text' => '',
925 ),
53ca8fd7 926 'extensionsDir' => array(
6a488035
TO
927 'group_name' => 'Directory Preferences',
928 'group' => 'directory',
929 'name' => 'extensionsDir',
930 'type' => 'Url',
931 'html_type' => 'Text',
932 'default' => '',
933 'add' => '4.1',
934 'prefetch' => 1,
935 'title' => '',
936 'is_domain' => 1,
937 'is_contact' => 0,
938 'description' => '',
939 'help_text' => '',
940 ),
53ca8fd7 941 'event_enable_cart' => array(
6a488035
TO
942 'name' => 'enable_cart',
943 'group_name' => 'Event Preferences',
944 'group' => 'event',
945 'type' => 'String',
946 'quick_form_type' => 'Element',
947 'default' => 0,
948 'add' => '4.1',
949 'title' => 'Enable Event Cart',
950 'is_domain' => 1,
951 'is_contact' => 1,
952 'description' => 'WRITE ME',
953 'help_text' => 'WRITE ME',
954 ),
53ca8fd7 955 'monetaryThousandSeparator' => array(
6a488035
TO
956 'group_name' => 'Localization Preferences',
957 'group' => 'localization',
958 'name' => 'monetaryThousandSeparator',
959 'prefetch' => 1,
960 'config_only' => 1,
961 'type' => 'String',
962 'quick_form_type' => 'Element',
963 'html_type' => 'text',
53ca8fd7 964 'html_attributes' => array(
6a488035
TO
965 'size' => 2,
966 ),
967 'default' => ',',
968 'add' => '4.3',
969 'title' => 'Thousands Separator',
970 'is_domain' => 1,
971 'is_contact' => 0,
972 'description' => '',
973 'help_text' => '',
974 ),
53ca8fd7 975 'monetaryDecimalPoint' => array(
6a488035
TO
976 'group_name' => 'Localization Preferences',
977 'group' => 'localization',
978 'name' => 'monetaryDecimalPoint',
979 'prefetch' => 1,
980 'config_only' => 1,
981 'type' => 'String',
982 'quick_form_type' => 'Element',
983 'html_type' => 'text',
53ca8fd7 984 'html_attributes' => array(
6a488035
TO
985 'size' => 2,
986 ),
987 'default' => '.',
988 'add' => '4.3',
989 'title' => 'Decimal Delimiter',
990 'is_domain' => 1,
991 'is_contact' => 0,
992 'description' => '',
993 'help_text' => '',
994 ),
53ca8fd7 995 'moneyformat' => array(
6a488035
TO
996 'group_name' => 'Localization Preferences',
997 'group' => 'localization',
998 'name' => 'moneyformat',
999 'prefetch' => 1,
1000 'config_only' => 1,
1001 'type' => 'String',
1002 'quick_form_type' => 'Element',
1003 'html_type' => 'text',
1004 'default' => '%c %a',
1005 'add' => '4.3',
1006 'title' => 'Monetary Amount Display',
1007 'is_domain' => 1,
1008 'is_contact' => 0,
1009 'description' => '',
1010 'help_text' => '',
1011 ),
53ca8fd7 1012 'moneyvalueformat' => array(
6a488035
TO
1013 'group_name' => 'Localization Preferences',
1014 'group' => 'localization',
1015 'name' => 'moneyvalueformat',
1016 'prefetch' => 1,
1017 'config_only' => 1,
1018 'type' => 'String',
1019 'quick_form_type' => 'Element',
1020 'html_type' => 'text',
1021 'default' => '%!i',
1022 'add' => '4.3',
1023 'title' => 'Monetary Amount Display',
1024 'is_domain' => 1,
1025 'is_contact' => 0,
1026 'description' => '',
1027 'help_text' => '',
1028 ),
53ca8fd7 1029 'defaultCurrency' => array(
6a488035
TO
1030 'group_name' => 'Localization Preferences',
1031 'group' => 'localization',
1032 'name' => 'defaultCurrency',
1033 'prefetch' => 1,
1034 'config_only' => 1,
1035 'type' => 'String',
1036 'quick_form_type' => 'Element',
1037 'html_type' => 'text',
53ca8fd7 1038 'html_attributes' => array(
6a488035
TO
1039 'size' => 2,
1040 ),
1041 'default' => 'USD',
1042 'add' => '4.3',
1043 'title' => 'Default Currency',
1044 'is_domain' => 1,
1045 'is_contact' => 0,
1046 'description' => 'Default currency assigned to contributions and other monetary transactions.',
1047 'help_text' => '',
1048 ),
53ca8fd7 1049 'countryLimit' => array(
6a488035
TO
1050 'group_name' => 'Localization Preferences',
1051 'group' => 'localization',
1052 'name' => 'countryLimit',
1053 'prefetch' => 1,
1054 'config_only' => 1,
1055 'type' => 'Array',
1056 'quick_form_type' => 'Element',
1057 'html_type' => 'advmultiselect',
53ca8fd7 1058 'html_attributes' => array(
6a488035
TO
1059 'size' => 5,
1060 'style' => 'width:150px',
1061 'class' => 'advmultiselect',
1062 ),
1063 'default' => 'null',
1064 'add' => '4.3',
1065 'title' => 'Available Countries',
1066 'is_domain' => 1,
1067 'is_contact' => 0,
1068 'description' => '',
1069 'help_text' => '',
1070 ),
53ca8fd7 1071 'provinceLimit' => array(
6a488035
TO
1072 'group_name' => 'Localization Preferences',
1073 'group' => 'localization',
1074 'name' => 'provinceLimit',
1075 'prefetch' => 1,
1076 'config_only' => 1,
1077 'type' => 'Array',
1078 'quick_form_type' => 'Element',
1079 'html_type' => 'advmultiselect',
53ca8fd7 1080 'html_attributes' => array(
6a488035
TO
1081 'size' => 5,
1082 'style' => 'width:150px',
1083 'class' => 'advmultiselect',
1084 ),
1085 'default' => 'null',
1086 'add' => '4.3',
1087 'title' => 'Available States and Provinces',
1088 'is_domain' => 1,
1089 'is_contact' => 0,
1090 'description' => '',
1091 'help_text' => '',
1092 ),
53ca8fd7 1093 'inheritLocale' => array(
6a488035
TO
1094 'group_name' => 'Localization Preferences',
1095 'group' => 'localization',
1096 'name' => 'inheritLocale',
1097 'prefetch' => 1,
1098 'config_only' => 1,
1099 'type' => 'Boolean',
1100 'quick_form_type' => 'YesNo',
1101 'default' => 0,
1102 'add' => '4.3',
1103 'title' => 'Inherit CMS Language',
1104 'is_domain' => 1,
1105 'is_contact' => 0,
1106 'description' => '',
1107 'help_text' => '',
1108 ),
53ca8fd7 1109 'dateformatDatetime' => array(
6a488035
TO
1110 'group_name' => 'Localization Preferences',
1111 'group' => 'localization',
1112 'name' => 'dateformatDatetime',
1113 'prefetch' => 1,
1114 'config_only' => 1,
1115 'type' => 'String',
1116 'default' => '%B %E%f, %Y %l:%M %P',
1117 'add' => '4.3',
1118 'title' => 'Complete Date and Time',
1119 'is_domain' => 1,
1120 'is_contact' => 0,
1121 'description' => '',
1122 'help_text' => '',
1123 ),
53ca8fd7 1124 'dateformatFull' => array(
6a488035
TO
1125 'group_name' => 'Localization Preferences',
1126 'group' => 'localization',
1127 'name' => 'dateformatFull',
1128 'prefetch' => 1,
1129 'config_only' => 1,
1130 'type' => 'String',
1131 'default' => '%B %E%f, %Y',
1132 'add' => '4.3',
1133 'title' => 'Complete Date',
1134 'is_domain' => 1,
1135 'is_contact' => 0,
1136 'description' => '',
1137 'help_text' => '',
1138 ),
53ca8fd7 1139 'dateformatPartial' => array(
6a488035
TO
1140 'group_name' => 'Localization Preferences',
1141 'group' => 'localization',
1142 'name' => 'dateformatPartial',
1143 'prefetch' => 1,
1144 'config_only' => 1,
1145 'type' => 'String',
1146 'default' => '%B %Y',
1147 'add' => '4.3',
1148 'title' => 'Month and Year',
1149 'is_domain' => 1,
1150 'is_contact' => 0,
1151 'description' => '',
1152 'help_text' => '',
1153 ),
53ca8fd7 1154 'lcMessages' => array(
6a488035
TO
1155 'group_name' => 'Localization Preferences',
1156 'group' => 'localization',
1157 'name' => 'lcMessages',
1158 'prefetch' => 1,
1159 'config_only' => 1,
1160 'type' => 'String',
1161 'default' => 'en_US',
1162 'add' => '4.3',
1163 'title' => 'Default Language',
1164 'is_domain' => 1,
1165 'is_contact' => 0,
1166 'description' => '',
1167 'help_text' => '',
1168 ),
53ca8fd7 1169 'profile_double_optin' => array(
6a488035
TO
1170 'group_name' => 'Mailing Preferences',
1171 'group' => 'mailing',
1172 'name' => 'profile_double_optin',
1173 'type' => 'Integer',
1174 'html_type' => 'checkbox',
1175 'default' => 0,
1176 'add' => '4.1',
1177 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1178 'is_domain' => 1,
1179 'is_contact' => 0,
1180 '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.',
1181 'help_text' => '',
1182 ),
53ca8fd7 1183 'track_civimail_replies' => array(
6a488035
TO
1184 'group_name' => 'Mailing Preferences',
1185 'group' => 'mailing',
1186 'name' => 'track_civimail_replies',
1187 'type' => 'Integer',
1188 'html_type' => 'checkbox',
1189 'default' => 0,
1190 'add' => '4.1',
1191 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1192 'is_domain' => 1,
1193 'is_contact' => 0,
1194 '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.',
1195 'help_text' => '',
1196 'validate_callback' => 'CRM_Core_BAO_Setting::validateBoolSetting',
1197 ),
53ca8fd7 1198 'civimail_workflow' => array(
6a488035
TO
1199 'group_name' => 'Mailing Preferences',
1200 'group' => 'mailing',
1201 'name' => 'civimail_workflow',
1202 'type' => 'Integer',
1203 'html_type' => 'checkbox',
1204 'default' => 0,
1205 'add' => '4.1',
1206 'title' => '',
1207 'is_domain' => 1,
1208 'is_contact' => 0,
1209 '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.',
1210 'help_text' => '',
1211 ),
53ca8fd7 1212 'civimail_server_wide_lock' => array(
6a488035
TO
1213 'group_name' => 'Mailing Preferences',
1214 'group' => 'mailing',
1215 'name' => 'civimail_server_wide_lock',
1216 'type' => 'Integer',
1217 'html_type' => 'checkbox',
1218 'default' => 0,
1219 'add' => '4.1',
1220 'title' => '',
1221 'is_domain' => 1,
1222 'is_contact' => 0,
1223 'description' => '',
1224 'help_text' => '',
1225 ),
53ca8fd7 1226 'mailing_backend' => array(
6a488035
TO
1227 'group_name' => 'Mailing Preferences',
1228 'group' => 'mailing',
1229 'name' => 'mailing_backend',
1230 'type' => 'Array',
1231 'html_type' => 'checkbox',
1232 'default' => 0,
1233 'add' => '4.1',
1234 'title' => '',
1235 'is_domain' => 1,
1236 'is_contact' => 0,
1237 'description' => '',
1238 'help_text' => '',
1239 ),
53ca8fd7 1240 'profile_add_to_group_double_optin' => array(
6a488035
TO
1241 'group_name' => 'Mailing Preferences',
1242 'group' => 'mailing',
1243 'name' => 'profile_add_to_group_double_optin',
1244 'type' => 'Integer',
1245 'html_type' => 'checkbox',
1246 'default' => 0,
1247 'add' => '4.1',
1248 'title' => 'Enable Double Opt-in for Profile Group(s) field',
1249 'is_domain' => 1,
1250 'is_contact' => 0,
1251 '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.',
1252 'help_text' => '',
1253 ),
53ca8fd7 1254 'default_renewal_contribution_page' => array(
6a488035
TO
1255 'group_name' => 'Member Preferences',
1256 'group' => 'member',
1257 'name' => 'default_renewal_contribution_page',
1258 'type' => 'Integer',
1259 'html_type' => 'Select',
1260 'default' => '',
53ca8fd7 1261 'pseudoconstant' => array(
6a488035
TO
1262 'name' => 'contributionPage',
1263 ),
1264 'add' => '4.1',
1265 'title' => 'Default online membership renewal page',
1266 'is_domain' => 1,
1267 'is_contact' => 0,
1268 '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.',
1269 'help_text' => '',
1270 ),
53ca8fd7 1271 'is_enabled' => array(
6a488035
TO
1272 'group_name' => 'Multi Site Preferences',
1273 'group' => 'multisite',
1274 'name' => 'is_enabled',
1275 'type' => 'Integer',
1276 'default' => '',
1277 'add' => '4.1',
1278 'is_domain' => 1,
1279 'is_contact' => 0,
1280 'description' => 'Multisite is enabled',
1281 'help_text' => '',
1282 ),
53ca8fd7 1283 'domain_group_id' => array(
6a488035
TO
1284 'group_name' => 'Multi Site Preferences',
1285 'group' => 'multisite',
1286 'name' => 'domain_group_id',
1287 'type' => 'Integer',
1288 'default' => '',
1289 'add' => '4.1',
1290 'is_domain' => 1,
1291 'is_contact' => 0,
1292 'description' => '',
1293 'help_text' => '',
1294 ),
53ca8fd7 1295 'event_price_set_domain_id' => array(
6a488035
TO
1296 'group_name' => 'Multi Site Preferences',
1297 'group' => 'multisite',
1298 'name' => 'event_price_set_domain_id',
1299 'type' => 'Integer',
1300 'default' => '',
1301 'add' => '4.1',
1302 'is_domain' => 1,
1303 'is_contact' => 0,
1304 'description' => '',
1305 'help_text' => '',
1306 ),
53ca8fd7 1307 'uniq_email_per_site' => array(
6a488035
TO
1308 'group_name' => 'Multi Site Preferences',
1309 'group' => 'multisite',
1310 'name' => 'uniq_email_per_site',
1311 'type' => 'Integer',
1312 'default' => '',
1313 'add' => '4.1',
1314 'is_domain' => 1,
1315 'is_contact' => 0,
1316 'description' => '',
1317 'help_text' => '',
1318 ),
53ca8fd7 1319 'search_autocomplete_count' => array(
6a488035
TO
1320 'group_name' => 'Search Preferences',
1321 'group' => 'Search Preferences',
1322 'name' => 'search_autocomplete_count',
1323 'prefetch' => 0,
1324 'type' => 'Integer',
1325 'quick_form_type' => 'Element',
1326 'html_type' => 'text',
53ca8fd7 1327 'html_attributes' => array(
6a488035
TO
1328 'size' => 2,
1329 'maxlength' => 2,
1330 ),
1331 'default' => 10,
1332 'add' => '4.3',
1333 'title' => 'Autocomplete Results',
1334 'is_domain' => 1,
1335 'is_contact' => 0,
1336 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
1337 'help_text' => '',
1338 ),
53ca8fd7 1339 'userFrameworkResourceURL' => array(
6a488035
TO
1340 'group' => 'UrlPreferences',
1341 'group_name' => 'url',
1342 'name' => 'userFrameworkResourceURL',
1343 'type' => 'String',
1344 'default' => '',
1345 'add' => '4.1',
1346 'prefetch' => 1,
1347 'is_domain' => 1,
1348 'is_contact' => 0,
1349 'description' => 'CiviCRM Resource URL',
1350 'help_text' => '',
1351 'validate_callback' => 'CRM_Utils_Rule::url',
1352 ),
53ca8fd7 1353 'imageUploadURL' => array(
6a488035
TO
1354 'group' => 'UrlPreferences',
1355 'group_name' => 'url',
1356 'name' => 'imageUploadURL',
1357 'type' => 'String',
1358 'default' => '',
1359 'add' => '4.1',
1360 'prefetch' => 1,
1361 'is_domain' => 1,
1362 'is_contact' => 0,
1363 'description' => 'Image Upload URL',
1364 'help_text' => '',
1365 'validate_callback' => 'CRM_Utils_Rule::url',
1366 ),
53ca8fd7 1367 'customCSSURL' => array(
6a488035
TO
1368 'group' => 'UrlPreferences',
1369 'group_name' => 'url',
1370 'name' => 'customCSSURL',
1371 'type' => 'String',
1372 'default' => '',
1373 'add' => '4.1',
1374 'prefetch' => 1,
1375 'is_domain' => 1,
1376 'is_contact' => 0,
1377 'description' => 'Custom CiviCRM CSS URL',
1378 'help_text' => '',
1379 'validate_callback' => 'CRM_Utils_Rule::url',
1380 ),
1381 ),
1382);
1383
fb32de45 1384 return $expectedResult;
6a488035
TO
1385}
1386
1387
1388/*
1389* This example has been generated from the API test suite. The test that created it is called
1390*
1391* testGetFields and can be found in
1392* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/SettingTest.php
1393*
1394* You can see the outcome of the API tests at
1395* http://tests.dev.civicrm.org/trunk/results-api_v3
1396*
1397* To Learn about the API read
1398* http://book.civicrm.org/developer/current/techniques/api/
1399*
1400* and review the wiki at
1401* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
1402*
1403* Read more about testing here
1404* http://wiki.civicrm.org/confluence/display/CRM/Testing
1405*
1406* API Standards documentation:
1407* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
1408*/