$tabs = array();
$row = array();
$inactive = array();
-
+ $activated = array();
+
if (has_capability('mod/quiz:view', $context)) {
$row[] = new tabobject('info', "$CFG->wwwroot/mod/quiz/view.php?q=$quiz->id", get_string('info', 'quiz'));
}
if ($currenttab == 'reports' and isset($mode)) {
$inactive[] = 'reports';
+ $activated[] = 'reports';
+
$allreports = get_list_of_plugins("mod/quiz/report");
$reportlist = array ('overview', 'regrade', 'grading', 'analysis'); // Standard reports we want to show first
if ($currenttab == 'edit' and isset($mode)) {
$inactive[] = 'edit';
+ $activated[] = 'edit';
$row = array();
$currenttab = $mode;
$tabs[] = $row;
}
- print_tabs($tabs, $currenttab, $inactive);
+ print_tabs($tabs, $currenttab, $inactive, $activated);
?>