Skip to content

Commit

Permalink
MDL-39913 assign: Add help on filetype submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed Apr 7, 2017
1 parent 4044cad commit 62e87ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -24,6 +24,7 @@


$string['acceptedfiletypes'] = 'Accepted file types';
$string['acceptedfiletypes_help'] = 'Accepted file types can be restricted by entering a semicolon-separated list of mimetypes, for example \'video/mp4; audio/mp3; image/png; image/jpeg\'. You may also limit to extensions by including the dot, for example \'.png; .jpg\' If the field is left empty, then all file types are allowed.';
$string['configmaxbytes'] = 'Maximum file size';
$string['countfiles'] = '{$a} files';
$string['default'] = 'Enabled by default';
Expand Down
1 change: 1 addition & 0 deletions mod/assign/submission/file/locallib.php
Expand Up @@ -109,6 +109,7 @@ public function get_settings(MoodleQuickForm $mform) {

$name = get_string('acceptedfiletypes', 'assignsubmission_file');
$mform->addElement('text', 'assignsubmission_file_filetypes', $name);
$mform->addHelpButton('assignsubmission_file_filetypes', 'acceptedfiletypes', 'assignsubmission_file');
$mform->setType('assignsubmission_file_filetypes', PARAM_RAW);
$mform->setDefault('assignsubmission_file_filetypes', $defaultfiletypes);
$mform->disabledIf('assignsubmission_file_filetypes', 'assignsubmission_file_enabled', 'notchecked');
Expand Down

0 comments on commit 62e87ae

Please sign in to comment.