2006-11-13 09:20:42 +00:00
|
|
|
<?php // $Id$
|
2007-06-10 23:20:45 +00:00
|
|
|
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
2006-11-24 06:39:15 +00:00
|
|
|
|
2006-12-28 09:32:45 +00:00
|
|
|
class mod_label_mod_form extends moodleform_mod {
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2007-05-08 15:44:37 +00:00
|
|
|
function definition() {
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2007-05-08 15:44:37 +00:00
|
|
|
$mform =& $this->_form;
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2007-05-08 15:44:37 +00:00
|
|
|
$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');
|
2007-01-05 04:51:46 +00:00
|
|
|
$mform->setHelpButton('content', array('questions', 'richtext'), false, 'editorhelpbutton');
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2008-02-21 14:12:48 +00:00
|
|
|
$features = array('groups'=>false, 'groupings'=>false, 'groupmembersonly'=>true,
|
|
|
|
'outcomes'=>false, 'gradecat'=>false, 'idnumber'=>false);
|
|
|
|
$this->standard_coursemodule_elements($features);
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2006-12-19 07:03:08 +00:00
|
|
|
//-------------------------------------------------------------------------------
|
2007-05-08 15:44:37 +00:00
|
|
|
// buttons
|
2008-02-21 14:12:48 +00:00
|
|
|
$this->add_action_buttons(true, false, null);
|
2006-12-19 07:03:08 +00:00
|
|
|
|
2007-05-08 15:44:37 +00:00
|
|
|
}
|
2006-11-13 09:20:42 +00:00
|
|
|
|
|
|
|
}
|
2007-05-08 15:44:37 +00:00
|
|
|
?>
|