1
<?php //$Id: user_message_form.php,v 1.2.2.1 2007/11/13 09:02:12 skodak Exp $
3
require_once($CFG->libdir.'/formslib.php');
5
class user_message_form extends moodleform {
7
function definition() {
8
$mform =& $this->_form;
9
$mform->addElement('header', 'general', get_string('message', 'message'));
12
$mform->addElement('textarea', 'messagebody', get_string('messagebody'), array('rows'=>15, 'cols'=>60));
13
$mform->addRule('messagebody', '', 'required', null, 'client');
14
$mform->setHelpButton('messagebody', array('writing', 'reading', 'questions', 'richtext'), false, 'editorhelpbutton');
15
$mform->addElement('format', 'format', get_string('format'));
17
$this->add_action_buttons();
b'\\ No newline at end of file'