MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice...
[moodle.git] / question / move_form.php
1 <?php
3 if (!defined('MOODLE_INTERNAL')) {
4     die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
5 }
7 require_once($CFG->libdir.'/formslib.php');
9 class question_move_form extends moodleform {
11     function definition() {
12         $mform    =& $this->_form;
14         $currentcat   = $this->_customdata['currentcat'];
15         $contexts   = $this->_customdata['contexts'];
16 //--------------------------------------------------------------------------------
18         $mform->addElement('questioncategory', 'category', get_string('category','quiz'), compact('contexts', 'currentcat'));
21 //--------------------------------------------------------------------------------
22         $this->add_action_buttons(true, get_string('categorymoveto', 'quiz'));
23 //--------------------------------------------------------------------------------
24         $mform->addElement('hidden', 'delete', $currentcat);
25         $mform->setType('delete', PARAM_INT);
26     }
27 }