Big cleanups of the code for neatness and performance

This commit is contained in:
moodler
2007-08-31 04:35:42 +00:00
parent e9fe953ff4
commit 7e7f6fda3b
3 changed files with 148 additions and 145 deletions
+3 -3
View File
@@ -10,9 +10,6 @@ class note_edit_form extends moodleform {
$strpublishstate = get_string('publishstate', 'notes');
$mform->addElement('header', 'general', get_string('note', 'notes'));
$mform->addElement('select', 'user', get_string('user'), $this->_customdata['userlist']);
$mform->addRule('user', get_string('nouser', 'notes'), 'required', null, 'client');
$mform->addElement('textarea', 'content', $strcontent, array('rows'=>15, 'cols'=>40));
$mform->setType('content', PARAM_RAW);
$mform->addRule('content', get_string('nocontent', 'notes'), 'required', null, 'client');
@@ -28,6 +25,9 @@ class note_edit_form extends moodleform {
$mform->addElement('hidden', 'course');
$mform->setType('course', PARAM_INT);
$mform->addElement('hidden', 'user');
$mform->setType('user', PARAM_INT);
$mform->addElement('hidden', 'note');
$mform->setType('note', PARAM_INT);
}