Updated the HEAD build version to 20100513
[moodle.git] / question / move_form.php
CommitLineData
aeb15530 1<?php
515ed4c3 2
3require_once($CFG->libdir.'/formslib.php');
4
5class question_move_form extends moodleform {
6
7 function definition() {
8 $mform =& $this->_form;
9
10 $currentcat = $this->_customdata['currentcat'];
11 $contexts = $this->_customdata['contexts'];
12//--------------------------------------------------------------------------------
13
14 $mform->addElement('questioncategory', 'category', get_string('category','quiz'), compact('contexts', 'currentcat'));
15
16
17//--------------------------------------------------------------------------------
18 $this->add_action_buttons(true, get_string('categorymoveto', 'quiz'));
19//--------------------------------------------------------------------------------
20 $mform->addElement('hidden', 'delete', $currentcat);
d18e0fe6 21 $mform->setType('delete', PARAM_INT);
515ed4c3 22 }
23}
aeb15530 24