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