CRM-16373 - Setting, weekBegins - Use pseudoconstant
authorTim Otten <totten@civicrm.org>
Mon, 17 Aug 2015 22:29:28 +0000 (15:29 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 18 Aug 2015 01:55:48 +0000 (18:55 -0700)
settings/Localization.setting.php

index 5d3508ff8ee18099a5f127036810d24e320e4993..6ec4c809eff5c361ffd0e8413e1c4b013e22aa9e 100644 (file)
@@ -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',