Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
81621fee | 4 | | CiviCRM version 4.7 | |
6a488035 | 5 | +--------------------------------------------------------------------+ |
e7112fa7 | 6 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
7 | +--------------------------------------------------------------------+ |
8 | | This file is a part of CiviCRM. | | |
9 | | | | |
10 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
11 | | under the terms of the GNU Affero General Public License | | |
12 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
13 | | | | |
14 | | CiviCRM is distributed in the hope that it will be useful, but | | |
15 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
16 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
17 | | See the GNU Affero General Public License for more details. | | |
18 | | | | |
19 | | You should have received a copy of the GNU Affero General Public | | |
20 | | License and the CiviCRM Licensing Exception along | | |
21 | | with this program; if not, contact CiviCRM LLC | | |
22 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
23 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
24 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
25 | +--------------------------------------------------------------------+ | |
d25dd0ee | 26 | */ |
6a488035 TO |
27 | |
28 | /** | |
29 | * | |
30 | * @package CRM | |
e7112fa7 | 31 | * @copyright CiviCRM LLC (c) 2004-2015 |
6a488035 TO |
32 | * $Id$ |
33 | * | |
34 | */ | |
35 | /* | |
36 | * Settings metadata file | |
37 | */ | |
38 | ||
39 | return array( | |
8a61528e TO |
40 | 'customTranslateFunction' => array( |
41 | 'add' => '4.7', | |
8a61528e TO |
42 | 'help_text' => NULL, |
43 | 'is_domain' => 1, | |
44 | 'is_contact' => 0, | |
45 | 'group_name' => 'Localization Preferences', | |
46 | 'group' => 'localization', | |
47 | 'name' => 'customTranslateFunction', | |
48 | 'type' => 'String', | |
49 | 'quick_form_type' => 'Element', | |
50 | 'html_type' => 'text', | |
51 | 'html_attributes' => array( | |
52 | 'size' => '30', | |
53 | 'maxlength' => '100', | |
54 | ), | |
55 | 'default' => NULL, | |
56 | 'title' => 'Custom Translate Function', | |
57 | 'description' => '', | |
58 | ), | |
6a488035 TO |
59 | 'monetaryThousandSeparator' => array( |
60 | 'group_name' => 'Localization Preferences', | |
61 | 'group' => 'localization', | |
62 | 'name' => 'monetaryThousandSeparator', | |
6a488035 TO |
63 | 'type' => 'String', |
64 | 'quick_form_type' => 'Element', | |
65 | 'html_type' => 'text', | |
66 | 'html_attributes' => array( | |
67 | 'size' => 2, | |
68 | ), | |
69 | 'default' => ',', | |
70 | 'add' => '4.3', | |
71 | 'title' => 'Thousands Separator', | |
72 | 'is_domain' => 1, | |
73 | 'is_contact' => 0, | |
08e57c58 TO |
74 | 'description' => NULL, |
75 | 'help_text' => NULL, | |
6a488035 TO |
76 | ), |
77 | 'monetaryDecimalPoint' => array( | |
78 | 'group_name' => 'Localization Preferences', | |
79 | 'group' => 'localization', | |
80 | 'name' => 'monetaryDecimalPoint', | |
6a488035 TO |
81 | 'type' => 'String', |
82 | 'quick_form_type' => 'Element', | |
83 | 'html_type' => 'text', | |
84 | 'html_attributes' => array( | |
85 | 'size' => 2, | |
86 | ), | |
87 | 'default' => '.', | |
88 | 'add' => '4.3', | |
89 | 'title' => 'Decimal Delimiter', | |
90 | 'is_domain' => 1, | |
91 | 'is_contact' => 0, | |
08e57c58 TO |
92 | 'description' => NULL, |
93 | 'help_text' => NULL, | |
6a488035 TO |
94 | ), |
95 | 'moneyformat' => array( | |
96 | 'group_name' => 'Localization Preferences', | |
97 | 'group' => 'localization', | |
98 | 'name' => 'moneyformat', | |
6a488035 TO |
99 | 'type' => 'String', |
100 | 'quick_form_type' => 'Element', | |
101 | 'html_type' => 'text', | |
102 | 'default' => '%c %a', | |
103 | 'add' => '4.3', | |
104 | 'title' => 'Monetary Amount Display', | |
105 | 'is_domain' => 1, | |
106 | 'is_contact' => 0, | |
08e57c58 TO |
107 | 'description' => NULL, |
108 | 'help_text' => NULL, | |
6a488035 TO |
109 | ), |
110 | 'moneyvalueformat' => array( | |
111 | 'group_name' => 'Localization Preferences', | |
112 | 'group' => 'localization', | |
113 | 'name' => 'moneyvalueformat', | |
6a488035 TO |
114 | 'type' => 'String', |
115 | 'quick_form_type' => 'Element', | |
116 | 'html_type' => 'text', | |
117 | 'default' => '%!i', | |
118 | 'add' => '4.3', | |
8a61528e | 119 | 'title' => 'Monetary Value Display', |
6a488035 TO |
120 | 'is_domain' => 1, |
121 | 'is_contact' => 0, | |
08e57c58 TO |
122 | 'description' => NULL, |
123 | 'help_text' => NULL, | |
6a488035 TO |
124 | ), |
125 | 'defaultCurrency' => array( | |
126 | 'group_name' => 'Localization Preferences', | |
127 | 'group' => 'localization', | |
128 | 'name' => 'defaultCurrency', | |
6a488035 | 129 | 'type' => 'String', |
8a61528e TO |
130 | 'quick_form_type' => 'Select', |
131 | 'html_type' => 'Select', | |
6a488035 | 132 | 'html_attributes' => array( |
8a61528e | 133 | 'class' => 'crm-select2', |
6a488035 TO |
134 | ), |
135 | 'default' => 'USD', | |
136 | 'add' => '4.3', | |
137 | 'title' => 'Default Currency', | |
138 | 'is_domain' => 1, | |
139 | 'is_contact' => 0, | |
140 | 'description' => 'Default currency assigned to contributions and other monetary transactions.', | |
08e57c58 | 141 | 'help_text' => NULL, |
8a61528e TO |
142 | 'pseudoconstant' => array( |
143 | 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols', | |
144 | ), | |
6a488035 | 145 | ), |
f9f9f147 CW |
146 | 'defaultContactCountry' => array( |
147 | 'group_name' => 'Localization Preferences', | |
148 | 'group' => 'localization', | |
149 | 'name' => 'defaultContactCountry', | |
f9f9f147 | 150 | 'type' => 'String', |
8a61528e TO |
151 | 'quick_form_type' => 'Select', |
152 | 'html_type' => 'Select', | |
f9f9f147 | 153 | 'html_attributes' => array( |
8a61528e | 154 | //'class' => 'crm-select2', |
f9f9f147 CW |
155 | ), |
156 | 'default' => '1228', | |
157 | 'add' => '4.4', | |
158 | 'title' => 'Default Country', | |
159 | 'is_domain' => 1, | |
160 | 'is_contact' => 0, | |
161 | 'description' => 'This value is selected by default when adding a new contact address.', | |
08e57c58 | 162 | 'help_text' => NULL, |
8a61528e TO |
163 | 'pseudoconstant' => array( |
164 | 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries', | |
165 | ), | |
f9f9f147 | 166 | ), |
ee12f1b2 TO |
167 | 'defaultContactStateProvince' => array( |
168 | 'add' => '4.7', | |
ee12f1b2 TO |
169 | 'help_text' => NULL, |
170 | 'is_domain' => 1, | |
171 | 'is_contact' => 0, | |
172 | 'group_name' => 'Localization Preferences', | |
173 | 'group' => 'localization', | |
174 | 'name' => 'defaultContactStateProvince', | |
175 | 'type' => 'Integer', | |
8a61528e TO |
176 | 'quick_form_type' => 'ChainSelect', |
177 | 'html_type' => 'ChainSelect', | |
178 | //'pseudoconstant' => array( | |
179 | // 'callback' => 'CRM_Core_PseudoConstant::stateProvince', | |
180 | //), | |
181 | //'html_attributes', | |
182 | 'default' => NULL, | |
ee12f1b2 TO |
183 | 'title' => 'Default State/Province', |
184 | 'description' => 'This value is selected by default when adding a new contact address.', | |
185 | ), | |
6a488035 TO |
186 | 'countryLimit' => array( |
187 | 'group_name' => 'Localization Preferences', | |
188 | 'group' => 'localization', | |
189 | 'name' => 'countryLimit', | |
6a488035 | 190 | 'type' => 'Array', |
8a61528e TO |
191 | 'quick_form_type' => 'Select', |
192 | 'html_type' => 'Select', | |
6a488035 | 193 | 'html_attributes' => array( |
8a61528e TO |
194 | 'multiple' => 1, |
195 | 'class' => 'crm-select2', | |
6a488035 | 196 | ), |
0acb7f15 | 197 | 'default' => array('1228'), |
6a488035 TO |
198 | 'add' => '4.3', |
199 | 'title' => 'Available Countries', | |
200 | 'is_domain' => 1, | |
201 | 'is_contact' => 0, | |
202 | 'description' => '', | |
08e57c58 | 203 | 'help_text' => NULL, |
8a61528e TO |
204 | 'pseudoconstant' => array( |
205 | 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries', | |
206 | ), | |
6a488035 TO |
207 | ), |
208 | 'provinceLimit' => array( | |
209 | 'group_name' => 'Localization Preferences', | |
210 | 'group' => 'localization', | |
211 | 'name' => 'provinceLimit', | |
6a488035 | 212 | 'type' => 'Array', |
8a61528e TO |
213 | 'quick_form_type' => 'Select', |
214 | 'html_type' => 'Select', | |
6a488035 | 215 | 'html_attributes' => array( |
8a61528e TO |
216 | 'multiple' => 1, |
217 | 'class' => 'crm-select2', | |
6a488035 | 218 | ), |
0acb7f15 | 219 | 'default' => array('1228'), |
6a488035 TO |
220 | 'add' => '4.3', |
221 | 'title' => 'Available States and Provinces', | |
222 | 'is_domain' => 1, | |
223 | 'is_contact' => 0, | |
224 | 'description' => '', | |
08e57c58 | 225 | 'help_text' => NULL, |
8a61528e TO |
226 | 'pseudoconstant' => array( |
227 | 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries', | |
228 | ), | |
6a488035 TO |
229 | ), |
230 | 'inheritLocale' => array( | |
231 | 'group_name' => 'Localization Preferences', | |
232 | 'group' => 'localization', | |
233 | 'name' => 'inheritLocale', | |
6a488035 TO |
234 | 'type' => 'Boolean', |
235 | 'quick_form_type' => 'YesNo', | |
236 | 'default' => '0', | |
237 | 'add' => '4.3', | |
238 | 'title' => 'Inherit CMS Language', | |
239 | 'is_domain' => 1, | |
240 | 'is_contact' => 0, | |
241 | 'description' => '', | |
08e57c58 | 242 | 'help_text' => NULL, |
6a488035 TO |
243 | ), |
244 | 'dateformatDatetime' => array( | |
245 | 'group_name' => 'Localization Preferences', | |
246 | 'group' => 'localization', | |
247 | 'name' => 'dateformatDatetime', | |
6a488035 | 248 | 'type' => 'String', |
a6c28496 TO |
249 | 'quick_form_type' => 'Element', |
250 | 'html_type' => 'text', | |
6a488035 TO |
251 | 'default' => '%B %E%f, %Y %l:%M %P', |
252 | 'add' => '4.3', | |
a6c28496 | 253 | 'title' => 'Date Format: Complete Date and Time', |
6a488035 TO |
254 | 'is_domain' => 1, |
255 | 'is_contact' => 0, | |
256 | 'description' => '', | |
08e57c58 | 257 | 'help_text' => NULL, |
6a488035 TO |
258 | ), |
259 | 'dateformatFull' => array( | |
260 | 'group_name' => 'Localization Preferences', | |
261 | 'group' => 'localization', | |
262 | 'name' => 'dateformatFull', | |
6a488035 | 263 | 'type' => 'String', |
a6c28496 TO |
264 | 'quick_form_type' => 'Element', |
265 | 'html_type' => 'text', | |
6a488035 TO |
266 | 'default' => '%B %E%f, %Y', |
267 | 'add' => '4.3', | |
a6c28496 | 268 | 'title' => 'Date Format: Complete Date', |
6a488035 TO |
269 | 'is_domain' => 1, |
270 | 'is_contact' => 0, | |
271 | 'description' => '', | |
08e57c58 | 272 | 'help_text' => NULL, |
6a488035 TO |
273 | ), |
274 | 'dateformatPartial' => array( | |
275 | 'group_name' => 'Localization Preferences', | |
276 | 'group' => 'localization', | |
277 | 'name' => 'dateformatPartial', | |
6a488035 | 278 | 'type' => 'String', |
a6c28496 TO |
279 | 'quick_form_type' => 'Element', |
280 | 'html_type' => 'text', | |
6a488035 TO |
281 | 'default' => '%B %Y', |
282 | 'add' => '4.3', | |
a6c28496 | 283 | 'title' => 'Date Format: Month and Year', |
6a488035 TO |
284 | 'is_domain' => 1, |
285 | 'is_contact' => 0, | |
286 | 'description' => '', | |
08e57c58 | 287 | 'help_text' => NULL, |
6a488035 | 288 | ), |
9277b874 TO |
289 | 'dateformatTime' => array( |
290 | 'add' => '4.7', | |
9277b874 TO |
291 | 'help_text' => NULL, |
292 | 'is_domain' => 1, | |
293 | 'is_contact' => 0, | |
294 | 'group_name' => 'Localization Preferences', | |
295 | 'group' => 'localization', | |
296 | 'name' => 'dateformatTime', | |
297 | 'type' => 'String', | |
298 | 'quick_form_type' => 'Element', | |
299 | 'html_type' => 'text', | |
300 | 'html_attributes' => array( | |
301 | 'size' => '12', | |
302 | 'maxlength' => '60', | |
303 | ), | |
304 | 'default' => '%l:%M %P', | |
305 | 'title' => 'Date Format: Time Only', | |
306 | 'description' => '', | |
307 | ), | |
308 | 'dateformatYear' => array( | |
309 | 'add' => '4.7', | |
9277b874 TO |
310 | 'help_text' => NULL, |
311 | 'is_domain' => 1, | |
312 | 'is_contact' => 0, | |
313 | 'group_name' => 'Localization Preferences', | |
314 | 'group' => 'localization', | |
315 | 'name' => 'dateformatYear', | |
316 | 'type' => 'String', | |
317 | 'quick_form_type' => 'Element', | |
318 | 'html_type' => 'text', | |
319 | 'html_attributes' => array( | |
320 | 'size' => '12', | |
321 | 'maxlength' => '60', | |
322 | ), | |
323 | 'default' => '%Y', | |
324 | 'title' => 'Date Format: Year Only', | |
325 | 'description' => '', | |
326 | ), | |
630d30ec TO |
327 | 'dateInputFormat' => array( |
328 | 'add' => '4.7', | |
630d30ec TO |
329 | 'help_text' => NULL, |
330 | 'is_domain' => 1, | |
331 | 'is_contact' => 0, | |
332 | 'group_name' => 'Localization Preferences', | |
333 | 'group' => 'localization', | |
334 | 'name' => 'dateInputFormat', | |
335 | 'type' => 'String', | |
336 | 'quick_form_type' => 'Select', | |
337 | 'html_type' => 'Select', | |
338 | 'pseudoconstant' => array( | |
339 | 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats', | |
340 | ), | |
341 | 'default' => 'mm/dd/yy', | |
342 | 'title' => 'Date Input Format', | |
343 | 'description' => '', | |
344 | ), | |
b7c8991e TO |
345 | 'fieldSeparator' => array( |
346 | 'add' => '4.7', | |
b7c8991e TO |
347 | 'help_text' => NULL, |
348 | 'is_domain' => 1, | |
349 | 'is_contact' => 0, | |
350 | 'group_name' => 'Localization Preferences', | |
351 | 'group' => 'localization', | |
352 | 'name' => 'fieldSeparator', | |
353 | 'type' => 'String', | |
354 | 'quick_form_type' => 'Element', | |
355 | 'html_type' => 'text', | |
356 | 'html_attributes' => array( | |
357 | 'size' => '2', | |
358 | 'maxlength' => '8', | |
359 | ), | |
360 | 'default' => ',', | |
361 | 'title' => 'Import / Export Field Separator', | |
362 | 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).', | |
363 | ), | |
439b55df TO |
364 | 'fiscalYearStart' => array( |
365 | 'add' => '4.7', | |
439b55df TO |
366 | 'help_text' => NULL, |
367 | 'is_domain' => 1, | |
368 | 'is_contact' => 0, | |
369 | 'group_name' => 'Localization Preferences', | |
370 | 'group' => 'localization', | |
371 | 'name' => 'fiscalYearStart', | |
372 | 'type' => 'Array', | |
373 | 'quick_form_type' => 'MonthDay', | |
374 | 'html_type' => 'MonthDay', | |
375 | 'default' => ',', | |
376 | 'title' => 'Fiscal Year Start', | |
377 | 'description' => '', | |
378 | ), | |
b72b5fc0 TO |
379 | 'languageLimit' => array( |
380 | 'group_name' => 'Localization Preferences', | |
381 | 'group' => 'localization', | |
382 | 'name' => 'languageLimit', | |
383 | 'type' => 'Array', | |
384 | 'quick_form_type' => 'Select', | |
385 | 'html_type' => 'Select', | |
386 | 'html_attributes' => array( | |
387 | 'multiple' => 1, | |
388 | 'class' => 'crm-select2', | |
389 | ), | |
390 | 'default' => NULL, | |
391 | 'add' => '4.3', | |
392 | 'title' => 'Available Languages (Multi-lingual)', | |
393 | 'is_domain' => 1, | |
394 | 'is_contact' => 0, | |
395 | 'description' => '', | |
396 | 'help_text' => NULL, | |
397 | 'pseudoconstant' => array( | |
398 | 'callback' => 'CRM_Core_I18n::languages', | |
399 | ), | |
400 | ), | |
6a488035 TO |
401 | 'lcMessages' => array( |
402 | 'group_name' => 'Localization Preferences', | |
403 | 'group' => 'localization', | |
404 | 'name' => 'lcMessages', | |
6a488035 | 405 | 'type' => 'String', |
8a61528e TO |
406 | 'quick_form_type' => 'Select', |
407 | 'html_type' => 'Select', | |
408 | 'html_attributes' => array( | |
409 | 'class' => 'crm-select2', | |
410 | ), | |
6a488035 TO |
411 | 'default' => 'en_US', |
412 | 'add' => '4.3', | |
413 | 'title' => 'Default Language', | |
414 | 'is_domain' => 1, | |
415 | 'is_contact' => 0, | |
416 | 'description' => '', | |
08e57c58 | 417 | 'help_text' => NULL, |
8a61528e TO |
418 | 'pseudoconstant' => array( |
419 | 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions', | |
420 | ), | |
b72b5fc0 TO |
421 | 'on_change' => array( |
422 | 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages', | |
423 | ), | |
6a488035 | 424 | ), |
b7c8991e TO |
425 | 'legacyEncoding' => array( |
426 | 'add' => '4.7', | |
b7c8991e TO |
427 | 'help_text' => NULL, |
428 | 'is_domain' => 1, | |
429 | 'is_contact' => 0, | |
430 | 'group_name' => 'Localization Preferences', | |
431 | 'group' => 'localization', | |
432 | 'name' => 'legacyEncoding', | |
433 | 'type' => 'String', | |
434 | 'quick_form_type' => 'Element', | |
435 | 'html_type' => 'text', | |
436 | 'html_attributes' => array( | |
437 | 'size' => '12', | |
438 | 'maxlength' => '30', | |
439 | ), | |
440 | 'default' => 'Windows-1252', | |
441 | 'title' => 'Legacy Encoding', | |
442 | 'description' => 'If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of Windows-1252 will work for Excel-created .CSV files on many computers.', | |
443 | ), | |
630d30ec TO |
444 | 'timeInputFormat' => array( |
445 | 'add' => '4.7', | |
630d30ec TO |
446 | 'help_text' => NULL, |
447 | 'is_domain' => 1, | |
448 | 'is_contact' => 0, | |
449 | 'group_name' => 'Localization Preferences', | |
450 | 'group' => 'localization', | |
451 | 'name' => 'timeInputFormat', | |
452 | 'type' => 'String', | |
453 | 'quick_form_type' => 'Select', | |
454 | 'html_type' => 'Select', | |
455 | 'pseudoconstant' => array( | |
456 | 'callback' => 'CRM_Core_SelectValues::getTimeFormats', | |
457 | ), | |
458 | 'default' => '1', | |
459 | 'title' => 'Time Input Format', | |
460 | 'description' => '', | |
461 | 'on_change' => array( | |
462 | 'CRM_Core_BAO_PreferencesDate::onChangeSetting', | |
463 | ), | |
464 | ), | |
6d9ac92c CW |
465 | 'weekBegins' => array( |
466 | 'group_name' => 'Localization Preferences', | |
467 | 'group' => 'localization', | |
468 | 'name' => 'weekBegins', | |
469 | 'type' => 'String', | |
976afa8f TO |
470 | 'quick_form_type' => 'Select', |
471 | 'html_type' => 'Select', | |
472 | 'pseudoconstant' => array( | |
473 | 'callback' => 'CRM_Utils_Date::getFullWeekdayNames', | |
474 | ), | |
6d9ac92c CW |
475 | 'default' => '0', |
476 | 'add' => '4.7', | |
477 | 'title' => 'Week begins on', | |
478 | 'is_domain' => 1, | |
479 | 'is_contact' => 0, | |
480 | 'description' => "", | |
481 | 'help_text' => NULL, | |
482 | ), | |
9747df8a | 483 | 'contact_default_language' => array( |
484 | 'group_name' => 'Localization Preferences', | |
485 | 'group' => 'localization', | |
486 | 'name' => 'contact_default_language', | |
487 | 'type' => 'String', | |
9c325795 TO |
488 | 'quick_form_type' => 'Select', |
489 | 'html_type' => 'Select', | |
490 | 'html_attributes' => array( | |
491 | 'class' => 'crm-select2', | |
492 | ), | |
493 | 'pseudoconstant' => array( | |
494 | 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions', | |
495 | ), | |
9747df8a | 496 | 'default' => '*default*', |
497 | 'add' => '4.7', | |
498 | 'title' => 'Default Language for contacts', | |
499 | 'is_domain' => 1, | |
500 | 'is_contact' => 0, | |
501 | 'description' => 'Default language (if any) for contact records', | |
502 | 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.' | |
503 | . 'You may or may not wish to make an assumption here about whether it matches the site language', | |
504 | ), | |
232624b1 | 505 | ); |