MDL-28501 mod_folder: make force downloading behavior configuable

This commit is contained in:
Charles Fulton
2020-09-07 14:40:40 -04:00
parent 916809d995
commit 51201bc672
9 changed files with 48 additions and 16 deletions
+6
View File
@@ -68,6 +68,12 @@ class mod_folder_mod_form extends moodleform_mod {
$mform->addElement('advcheckbox', 'showdownloadfolder', get_string('showdownloadfolder', 'folder'));
$mform->addHelpButton('showdownloadfolder', 'showdownloadfolder', 'mod_folder');
$mform->setDefault('showdownloadfolder', true);
// Adding option to enable viewing of individual files.
$mform->addElement('advcheckbox', 'forcedownload', get_string('forcedownload', 'folder'));
$mform->addHelpButton('forcedownload', 'forcedownload', 'mod_folder');
$mform->setDefault('forcedownload', true);
//-------------------------------------------------------
$this->standard_coursemodule_elements();