function question_list($course, $pageurl, $categoryid, $cm = null,
$recurse=1, $page=0, $perpage=100, $showhidden=false, $sortorder='typename', $sortorderdecoded='qtype, name ASC',
$showquestiontext = false) {
+
global $QTYPE_MENU, $USER, $CFG, $THEME;
- $qtypemenu = $QTYPE_MENU;
- if ($rqp_types = get_records('question_rqp_types')) {
- foreach($rqp_types as $type) {
- $qtypemenu['rqp_'.$type->id] = $type->name;
- }
- }
-
$strcategory = get_string("category", "quiz");
$strquestion = get_string("question", "quiz");
$straddquestions = get_string("addquestions", "quiz");
if ($cm!==null){
$questionurl->param('cmid', $cm->id);
}
- popup_form ($questionurl->out().'&qtype=', $qtypemenu, "addquestion", "", "choose", "", "", false, "self", "<strong>$strcreatenewquestion</strong>");
+ popup_form ($questionurl->out().'&qtype=', $QTYPE_MENU, "addquestion", "", "choose", "", "", false, "self", "<strong>$strcreatenewquestion</strong>");
echo '</td><td valign="top" align="right">';
helpbutton("questiontypes", $strcreatenewquestion, "quiz");
echo '</td>';