Updated the 19 build version to 20101023
[moodle.git] / mod / label / mod_form.php
blob12f4cc6b5648d48e6ae679b957f1a2e4b50d9827
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', 'richtext'), false, 'editorhelpbutton');
15 $features = array('groups'=>false, 'groupings'=>false, 'groupmembersonly'=>true,
16 'outcomes'=>false, 'gradecat'=>false, 'idnumber'=>false);
17 $this->standard_coursemodule_elements($features);
19 //-------------------------------------------------------------------------------
20 // buttons
21 $this->add_action_buttons(true, false, null);