. /** * A moodle form to manage folder files * * @package mod * @subpackage folder * @copyright 2010 Dongsheng Cai * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); require_once("$CFG->libdir/formslib.php"); class mod_folder_edit_form extends moodleform { function definition() { $mform = $this->_form; $data = $this->_customdata['data']; $options = $this->_customdata['options']; $mform->addElement('hidden', 'id', $data->id); $mform->addElement('filemanager', 'files_filemanager', get_string('files'), null, $options); $submit_string = get_string('submit'); $this->add_action_buttons(true, $submit_string); $this->set_data($data); } }