. /** * A moodle form to manage files * * @package mod-folder * @copyright 2010 Dongsheng Cai * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_folder_edit_form extends moodleform { function definition() { $mform =& $this->_form; $cmid = $this->_customdata['id']; $mform->addElement('hidden', 'id', $cmid); $mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, array('subdirs'=>1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL)); $submit_string = get_string('submit'); $this->add_action_buttons(false, $submit_string); } }