forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmove_form.php
24 lines (16 loc) · 848 Bytes
/
move_form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
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);
$mform->setType('delete', PARAM_INT);
}
}