MDL-57616 label: allow to drag and drop video/audio files
This commit is contained in:
@@ -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
@@ -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, '.');
|
||||
|
||||
Reference in New Issue
Block a user