mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
22 lines
593 B
PHP
22 lines
593 B
PHP
<?php
|
|
|
|
if (!defined('MOODLE_INTERNAL')) {
|
|
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
|
}
|
|
|
|
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('editor', 'messagebody', get_string('messagebody'), null, null);
|
|
$mform->addRule('messagebody', '', 'required', null, 'server');
|
|
|
|
$this->add_action_buttons();
|
|
}
|
|
}
|