MDL-48371 editors: Option for removing managefiles

We want to remove the managefiles button from the
editors in the wiki so that students don't delete
each others files.
This commit is contained in:
Adrian Greeve
2015-09-07 09:59:33 +01:00
committed by Dan Poltawski
parent a64e1f3684
commit 037e05e8b2
5 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
/** @var array options provided to initalize filepicker */
protected $_options = array('subdirs' => 0, 'maxbytes' => 0, 'maxfiles' => 0, 'changeformat' => 0,
'areamaxbytes' => FILE_AREA_MAX_BYTES_UNLIMITED, 'context' => null, 'noclean' => 0, 'trusttext' => 0,
'return_types' => 7);
'return_types' => 7, 'enable_filemanagement' => true);
// $_options['return_types'] = FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE
/** @var array values for editor */