30
31
// Standard fields at the start of the form.
31
32
$mform->addElement('header', 'generalheader', get_string("general", 'form'));
33
$mform->addElement('questioncategory', 'category', get_string('category', 'quiz'),
36
$mform->addElement('text', 'name', get_string('questionname', 'quiz'),
39
$mform->addRule('name', null, 'required', null, 'client');
34
$mform->addElement('questioncategory', 'category', get_string('category', 'quiz'),
41
37
$mform->addElement('advcheckbox', 'questiontext', get_string("recurse", "quiz"), null, null, array(0, 1));