moodle_local_treestudyplan/classes/local/forms/studyplan_editform.php
2023-10-18 08:46:44 +02:00

20 lines
637 B
PHP

<?php
namespace local_treestudyplan\local\forms;
use moodleform;
class studyplan_editform extends moodleform {
public function definition() {
global $CFG, $COURSE, $DB, $PAGE;
$mform = $this->_form;
// Activity.
$mform->addElement('editor', 'activityeditor',
get_string('activityeditor', 'assign'), array('rows' => 10), array('maxfiles' => EDITOR_UNLIMITED_FILES,
'noclean' => true, 'context' => $this->context, 'subdirs' => true));
$mform->addHelpButton('activityeditor', 'activityeditor', 'assign');
$mform->setType('activityeditor', PARAM_RAW);
}
}