~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to admin/user/user_message_form.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php //$Id: user_message_form.php,v 1.2.2.1 2007/11/13 09:02:12 skodak Exp $
 
2
 
 
3
require_once($CFG->libdir.'/formslib.php');
 
4
 
 
5
class user_message_form extends moodleform {
 
6
 
 
7
    function definition() {
 
8
        $mform =& $this->_form;
 
9
        $mform->addElement('header', 'general', get_string('message', 'message'));
 
10
 
 
11
 
 
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'));
 
16
 
 
17
        $this->add_action_buttons();
 
18
    }
 
19
}
 
20
?>
 
 
b'\\ No newline at end of file'