source: moodle/trunk/fuentes/admin/user/user_message_form.php @ 136

Last change on this file since 136 was 136, checked in by mabarracus, 4 years ago

Ported code to xenial

File size: 593 bytes
Line 
1<?php
2
3if (!defined('MOODLE_INTERNAL')) {
4    die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
5}
6
7require_once($CFG->libdir.'/formslib.php');
8
9class user_message_form extends moodleform {
10
11    function definition() {
12        $mform =& $this->_form;
13        $mform->addElement('header', 'general', get_string('message', 'message'));
14
15
16        $mform->addElement('editor', 'messagebody', get_string('messagebody'), null, null);
17        $mform->addRule('messagebody', '', 'required', null, 'server');
18
19        $this->add_action_buttons();
20    }
21}
Note: See TracBrowser for help on using the repository browser.