MDL-40218 Assignment: Added show/hide suspended users functionality

This commit is contained in:
Rajesh Taneja 2013-06-18 17:07:44 +08:00
parent f8e6e5bc30
commit 4c4c7b3f3f
3 changed files with 88 additions and 9 deletions

View file

@ -67,6 +67,13 @@ class mod_assign_grading_options_form extends moodleform {
$mform->setDefault('quickgrading', $instance['quickgrading']);
}
// Show active/suspended user option.
if ($instance['showonlyactiveenrolopt']) {
$mform->addElement('checkbox', 'showonlyactiveenrol', get_string('showonlyactiveenrol', 'grades'), '', $dirtyclass);
$mform->addHelpButton('showonlyactiveenrol', 'showonlyactiveenrol', 'grades');
$mform->setDefault('showonlyactiveenrol', $instance['showonlyactiveenrol']);
}
// Hidden params.
$mform->addElement('hidden', 'contextid', $instance['contextid']);
$mform->setType('contextid', PARAM_INT);