MDL-57616 label: allow to drag and drop video/audio files

This commit is contained in:
Marina Glancy
2017-04-04 12:00:27 +08:00
parent 3f48012eb5
commit 5dc2aeda9a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ $string['configdndresizewidth'] = 'When a label is created from a dragged & drop
$string['dndmedia'] = 'Media drag and drop';
$string['dndresizeheight'] = 'Resize drag and drop height';
$string['dndresizewidth'] = 'Resize drag and drop width';
$string['dnduploadlabel'] = 'Add image to course page';
$string['dnduploadlabel'] = 'Add media to course page';
$string['dnduploadlabeltext'] = 'Add a label to the course page';
$string['label:addinstance'] = 'Add a new label';
$string['labeltext'] = 'Label text';
+1 -1
View File
@@ -192,7 +192,7 @@ function label_supports($feature) {
function label_dndupload_register() {
$strdnd = get_string('dnduploadlabel', 'mod_label');
if (get_config('label', 'dndmedia')) {
$mediaextensions = file_get_typegroup('extension', 'web_image');
$mediaextensions = file_get_typegroup('extension', ['web_image', 'web_video', 'web_audio']);
$files = array();
foreach ($mediaextensions as $extn) {
$extn = trim($extn, '.');