Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / mod / assignment / settings.php
blob745ef72f9f1ecc6a2af00ca2a15b5518125bda8a
1 <?php //$Id$
3 require_once($CFG->dirroot.'/mod/assignment/lib.php');
5 $settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
6 get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
8 $options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '')),
9 ASSIGNMENT_COUNT_LETTERS => trim(get_string('numletters', '')));
10 $settings->add(new admin_setting_configselect('assignment_itemstocount', get_string('itemstocount', 'assignment'),
11 get_string('configitemstocount', 'assignment'), ASSIGNMENT_COUNT_WORDS, $options));
13 $settings->add(new admin_setting_configcheckbox('assignment_showrecentsubmissions', get_string('showrecentsubmissions', 'assignment'),
14 get_string('configshowrecentsubmissions', 'assignment'), 1));