$mform = $this->_form;
$haserror = !empty($this->_customdata['haserror']);
+ $starttime = isset($this->_customdata['starttime']) ? $this->_customdata['starttime'] : 0;
$eventtypes = calendar_get_all_allowed_types();
+ if (empty($eventtypes)) {
+ print_error('nopermissiontoupdatecalendar');
+ }
+
$mform->setDisableShortforms();
$mform->disable_form_change_checker();