mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00

merge the items dropdownrated, radiorated to multiplechoicerated item the creating or editing of an item now use the formslib
18 lines
476 B
PHP
18 lines
476 B
PHP
<?php
|
|
|
|
require_once $CFG->libdir.'/formslib.php';
|
|
|
|
class feedback_label_form extends moodleform {
|
|
var $type = "label";
|
|
var $area;
|
|
|
|
function definition() {
|
|
$mform =& $this->_form;
|
|
|
|
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
|
|
|
|
$mform->addElement('hidden', 'itemname', $this->type);
|
|
$this->area = $mform->addElement('htmleditor', 'presentation', '', array('rows'=>20));
|
|
}
|
|
}
|
|
?>
|