MDL-29148 MNet - improved handling of a verification function return code
[moodle.git] / question / move_form.php
blobd2b6445d55c0ded4aa4276c3ff232bb73d0e4a0e
1 <?php // $Id$
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);