mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
24 lines
812 B
PHP
24 lines
812 B
PHP
<?php //$Id$
|
|
|
|
require_once($CFG->libdir.'/formslib.php');
|
|
|
|
class question_move_form extends moodleform {
|
|
|
|
function definition() {
|
|
$mform =& $this->_form;
|
|
|
|
$currentcat = $this->_customdata['currentcat'];
|
|
$contexts = $this->_customdata['contexts'];
|
|
//--------------------------------------------------------------------------------
|
|
|
|
$mform->addElement('questioncategory', 'category', get_string('category','quiz'), compact('contexts', 'currentcat'));
|
|
|
|
|
|
//--------------------------------------------------------------------------------
|
|
$this->add_action_buttons(true, get_string('categorymoveto', 'quiz'));
|
|
//--------------------------------------------------------------------------------
|
|
$mform->addElement('hidden', 'delete', $currentcat);
|
|
}
|
|
}
|
|
?>
|