-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_form.php
19 lines (15 loc) · 964 Bytes
/
edit_form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
class block_ungradedassignments_edit_form extends block_edit_form {
protected function specific_definition($mform) {
$mform->addElement('header', 'configheader', get_string('blocksettings', 'block'));
$mform->addElement('advcheckbox', 'config_showunenrolled', get_string('showunenrolled', 'block_ungradedassignments'));
$mform->setDefault('config_showunenrolled', false);
$mform->addElement('advcheckbox', 'config_condense', get_string('condense', 'block_ungradedassignments'));
$mform->setDefault('config_condense', true);
$mform->addElement('advcheckbox', 'config_hidequizzes', get_string('hidequizzes', 'block_ungradedassignments'));
$mform->setDefault('config_hidequizzes', false);
$mform->addElement('text', 'config_blockdirectory', get_string('blockdirectory', 'block_ungradedassignments'));
$mform->setDefault('config_blockdirectory', '/ungradedassignments');
$mform->setType('config_blockdirectory', PARAM_MULTILANG);
}
}