mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-16164 improved use of forms in notes code and some other minor cleanup
This commit is contained in:
parent
5b4b959b5a
commit
241bcec5fa
6 changed files with 50 additions and 136 deletions
|
@ -21,14 +21,14 @@ class note_edit_form extends moodleform {
|
|||
|
||||
$this->add_action_buttons();
|
||||
|
||||
$mform->addElement('hidden', 'course');
|
||||
$mform->addElement('hidden', 'courseid');
|
||||
$mform->setType('course', PARAM_INT);
|
||||
|
||||
$mform->addElement('hidden', 'user');
|
||||
$mform->addElement('hidden', 'userid');
|
||||
$mform->setType('user', PARAM_INT);
|
||||
|
||||
$mform->addElement('hidden', 'note');
|
||||
$mform->setType('note', PARAM_INT);
|
||||
$mform->addElement('hidden', 'id');
|
||||
$mform->setType('id', PARAM_INT);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue