Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/user/user_message_form.php
Go to the documentation of this file.
00001 <?php
00002 
00003 if (!defined('MOODLE_INTERNAL')) {
00004     die('Direct access to this script is forbidden.');    
00005 }
00006 
00007 require_once($CFG->libdir.'/formslib.php');
00008 
00009 class user_message_form extends moodleform {
00010 
00011     function definition() {
00012         $mform =& $this->_form;
00013         $mform->addElement('header', 'general', get_string('message', 'message'));
00014 
00015 
00016         $mform->addElement('editor', 'messagebody', get_string('messagebody'), null, null);
00017         $mform->addRule('messagebody', '', 'required', null, 'server');
00018 
00019         $this->add_action_buttons();
00020     }
00021 }
 All Data Structures Namespaces Files Functions Variables Enumerations