projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b0349
)
CRM-16373 - Setting, weekBegins - Use pseudoconstant
author
Tim Otten
<totten@civicrm.org>
Mon, 17 Aug 2015 22:29:28 +0000
(15:29 -0700)
committer
Tim Otten
<totten@civicrm.org>
Tue, 18 Aug 2015 01:55:48 +0000
(18:55 -0700)
settings/Localization.setting.php
patch
|
blob
|
blame
|
history
diff --git
a/settings/Localization.setting.php
b/settings/Localization.setting.php
index 5d3508ff8ee18099a5f127036810d24e320e4993..6ec4c809eff5c361ffd0e8413e1c4b013e22aa9e 100644
(file)
--- a/
settings/Localization.setting.php
+++ b/
settings/Localization.setting.php
@@
-302,9
+302,11
@@
return array(
'group' => 'localization',
'name' => 'weekBegins',
'type' => 'String',
- 'quick_form_type' => 'Element',
- 'html_type' => 'select',
- 'option_values' => CRM_Utils_Date::getFullWeekdayNames(),
+ 'quick_form_type' => 'Select',
+ 'html_type' => 'Select',
+ 'pseudoconstant' => array(
+ 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
+ ),
'default' => '0',
'add' => '4.7',
'title' => 'Week begins on',