Merge branch 'w13_MDL-26913_20_sitecreated' of git://github.com/skodak/moodle into...
[moodle.git] / question / move_form.php
blobe5b6a4afcc59c6ad25c132881981ac87d5912a39
1 <?php
3 if (!defined('MOODLE_INTERNAL')) {
4 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
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);