MDL-42932 core_calendar: introduced calendar type system setting

This commit is contained in:
Mark Nelson
2013-11-25 23:11:17 -08:00
parent f7434db109
commit bb32a499e1
8 changed files with 43 additions and 4 deletions
+4 -1
View File
@@ -36,8 +36,11 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
}
// calendar
// Calendar settings.
$temp = new admin_settingpage('calendar', new lang_string('calendarsettings','admin'));
$temp->add(new admin_setting_configselect('calendartype', new lang_string('calendartype', 'admin'),
new lang_string('configcalendartype', 'admin'), 'gregorian', \core_calendar\type_factory::get_list_of_calendar_types()));
$temp->add(new admin_setting_special_adminseesall());
//this is hacky because we do not want to include the stuff from calendar/lib.php
$temp->add(new admin_setting_configselect('calendar_site_timeformat', new lang_string('pref_timeformat', 'calendar'),