MDL-38243 mod_assessment: make assessment forms non-collapsible
[moodle.git] / mod / assignment / settings.php
blob05fa52c0c8394bac856ddbb3cb934625ad1c6c23
1 <?php
3 defined('MOODLE_INTERNAL') || die;
5 if ($ADMIN->fulltree) {
6 require_once($CFG->dirroot.'/mod/assignment/lib.php');
8 if (isset($CFG->maxbytes)) {
9 $settings->add(new admin_setting_configselect('assignment_maxbytes', get_string('maximumsize', 'assignment'),
10 get_string('configmaxbytes', 'assignment'), 1048576, get_max_upload_sizes($CFG->maxbytes)));
13 $options = array(ASSIGNMENT_COUNT_WORDS => trim(get_string('numwords', '', '?')),
14 ASSIGNMENT_COUNT_LETTERS => trim(get_string('numletters', '', '?')));
15 $settings->add(new admin_setting_configselect('assignment_itemstocount', get_string('itemstocount', 'assignment'),
16 get_string('configitemstocount', 'assignment'), ASSIGNMENT_COUNT_WORDS, $options));
18 $settings->add(new admin_setting_configcheckbox('assignment_showrecentsubmissions', get_string('showrecentsubmissions', 'assignment'),
19 get_string('configshowrecentsubmissions', 'assignment'), 1));