MDL-18910 moving modedit features to modname_supports()
[moodle.git] / mod / label / mod_form.php
1 <?php // $Id$
2 require_once ($CFG->dirroot.'/course/moodleform_mod.php');
4 class mod_label_mod_form extends moodleform_mod {
6     function definition() {
8         $mform    =& $this->_form;
10         $mform->addElement('htmleditor', 'content', get_string('labeltext', 'label'), array('size'=>'64'));
11         $mform->setType('content', PARAM_RAW);
12         $mform->addRule('content', get_string('required'), 'required', null, 'client');
13         $mform->setHelpButton('content', array('questions', 'richtext2'), false, 'editorhelpbutton');
15         $this->standard_coursemodule_elements();
17 //-------------------------------------------------------------------------------
18 // buttons
19         $this->add_action_buttons(true, false, null);
21     }
23 }
24 ?>