20 lines
637 B
PHP
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);
|
||
|
}
|
||
|
}
|