adding current groupid to grade_export class - soon to be used in plugins
[moodle-pu.git] / mod / label / mod_form.php
blob113811686a342e7a9e6ca2529374dd3ee9dfd343
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 $this->standard_hidden_coursemodule_elements();
17 $mform->addElement('modvisible', 'visible', get_string('visible'));
19 //-------------------------------------------------------------------------------
20 // buttons
21 $this->add_action_buttons();