MDL-43169 core_calendar: introduced calendar type system setting (Backport of MDL-42932)

This commit is contained in:
Mark Nelson
2014-02-16 13:52:57 -08:00
parent 27ebbdd703
commit ce7c5de2e9
7 changed files with 41 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)) {