From: pilpi <pilpi> Date: Fri, 28 Nov 2008 16:27:42 +0000 (+0000) Subject: quiz editing: MDL-17398 Added "show category contents" as a tooltip for the link... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8333ad82aeb61deedbbf2e1963c618c8306dc46d;p=moodle.git quiz editing: MDL-17398 Added "show category contents" as a tooltip for the link with the category name as its contents --- diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 7b5aa07f88..b57b52c219 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -805,11 +805,15 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool print_string('random','quiz'); echo " ".get_string("fromcategory",'quiz').":</div>"; + $a = new stdClass; + $a->arrow = $THEME->rarrow; + $strshowcategorycontents=get_string('showcategorycontents','quiz', $a); + echo '<div class="randomquestioncategory">'; echo '<a href="'. $pageurl->out(false,array("qbanktool"=>1, "cat"=>$category->id.','.$category->contextid)). - '">'.$category->name.'</a>'; + '" title="'.$strshowcategorycontents.'">'.$category->name.'</a>'; echo '<span class="questionpreview">'. quiz_question_preview_button($quiz, $question). '</span>'; @@ -831,9 +835,6 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool echo '<br />'; //create link to open question bank - $a = new stdClass; - $a->arrow = $THEME->rarrow; - $strshowcategorycontents=get_string('showcategorycontents','quiz', $a); $linkcategorycontents=' <a href="'. $pageurl->out(false,array("qbanktool"=>1, "cat"=>$category->id.','.$category->contextid)).