Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / question / move_form.php
blob331a509ff74b1c4e3de2e24dd16742497a6c2fb1
1 <?php // $Id$
3 require_once($CFG->libdir.'/formslib.php');
5 class question_move_form extends moodleform {
7 function definition() {
8 $mform =& $this->_form;
10 $currentcat = $this->_customdata['currentcat'];
11 $contexts = $this->_customdata['contexts'];
12 //--------------------------------------------------------------------------------
14 $mform->addElement('questioncategory', 'category', get_string('category','quiz'), compact('contexts', 'currentcat'));
17 //--------------------------------------------------------------------------------
18 $this->add_action_buttons(true, get_string('categorymoveto', 'quiz'));
19 //--------------------------------------------------------------------------------
20 $mform->addElement('hidden', 'delete', $currentcat);