mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
20 lines
681 B
PHP
20 lines
681 B
PHP
<?php //$Id$
|
|
|
|
require_once($CFG->libdir.'/formslib.php');
|
|
|
|
class user_message_form extends moodleform {
|
|
|
|
function definition() {
|
|
$mform =& $this->_form;
|
|
$mform->addElement('header', 'general', get_string('message', 'message'));
|
|
|
|
|
|
$mform->addElement('textarea', 'messagebody', get_string('messagebody'), array('rows'=>15, 'cols'=>60));
|
|
$mform->addRule('messagebody', '', 'required', null, 'client');
|
|
$mform->setHelpButton('messagebody', array('writing', 'reading', 'questions', 'richtext2'), false, 'editorhelpbutton');
|
|
$mform->addElement('format', 'format', get_string('format'));
|
|
|
|
$this->add_action_buttons();
|
|
}
|
|
}
|
|
?>
|