diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 691f5f8f14f..3197a3c26aa 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -1332,6 +1332,17 @@ function quiz_print_category_form($course, $current) { } +function quiz_get_category_coursename($category) { +/// if the category is published, adds on the course +/// name + $cname=$category->name; + if ($category->publish) { + if ($catcourse=get_record("course","id",$category->id)) { + $cname .= " ($catcourse->shortname) "; + } + } + return $cname; +} function quiz_choose_random_questions($category, $draws, $excluded=0) { /// Given a question category and a number of draws, this function @@ -1509,6 +1520,7 @@ function quiz_print_cat_question_list($categoryid, $quizselected=true) { $strquestion = get_string("question", "quiz"); $straddquestions = get_string("addquestions", "quiz"); $strimportquestions = get_string("importquestions", "quiz"); + $strexportquestions = get_string("exportquestions", "quiz"); $strnoquestions = get_string("noquestions", "quiz"); $strselect = get_string("select", "quiz"); $strselectall = get_string("selectall", "quiz"); @@ -1556,6 +1568,14 @@ function quiz_print_cat_question_list($categoryid, $quizselected=true) { echo ''; echo ''; + echo '