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
+1
View File
@@ -251,6 +251,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
// We do not want to show this option unless there is more than one calendar type to display.
if (count($calendartypes) > 1) {
$mform->addElement('select', 'calendartype', get_string('preferredcalendar', 'calendar'), $calendartypes);
$mform->setDefault('calendartype', $CFG->calendartype);
}
if (!empty($CFG->allowuserthemes)) {