}
function calendar_course_filter_selector($getvars = '') {
- global $USER, $SESSION;
+ global $USER, $SESSION, $OUTPUT;
if (empty($USER->id) or isguest()) {
return '';
} else {
$selected = '';
}
-
- return popup_form(CALENDAR_URL.'set.php?var=setcourse&'.$getvars.'&id=',
- $courseoptions, 'cal_course_flt', $selected, '', '', '', true);
+ $select = moodle_select::make_popup_form(CALENDAR_URL.'set.php?var=setcourse&'.$getvars, 'id', $courseoptions, 'cal_courses_flt', $selected);
+ $select->nothinglabel = false;
+ return $OUTPUT->select($select);
}
?>