mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
27 lines
927 B
PHP
27 lines
927 B
PHP
<?php // $Id$
|
|
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
|
|
|
class mod_label_mod_form extends moodleform_mod {
|
|
|
|
function definition() {
|
|
|
|
$mform =& $this->_form;
|
|
|
|
$mform->addElement('htmleditor', 'content', get_string('labeltext', 'label'), array('size'=>'64'));
|
|
$mform->setType('content', PARAM_RAW);
|
|
$mform->addRule('content', get_string('required'), 'required', null, 'client');
|
|
$mform->setHelpButton('content', array('questions', 'richtext'), false, 'editorhelpbutton');
|
|
|
|
$features = array('groups'=>false, 'groupings'=>false, 'groupmembersonly'=>true,
|
|
'outcomes'=>false, 'gradecat'=>false, 'idnumber'=>false);
|
|
$this->standard_coursemodule_elements($features);
|
|
|
|
//-------------------------------------------------------------------------------
|
|
// buttons
|
|
$this->add_action_buttons(true, false, null);
|
|
|
|
}
|
|
|
|
}
|
|
?>
|