quiz_stats_charts.tpl.php in Quiz 7.5
File
modules/quiz_stats/theme/quiz_stats_charts.tpl.php
View source
<?php
$chart_found = FALSE;
if (!function_exists('_quiz_stats_print_chart')) {
function _quiz_stats_print_chart(&$chart) {
if (is_array($chart)) {
echo '<h2 class="quiz-charts-title">' . $chart['title'] . '</h2>' . "\n" . $chart['chart'] . "\n" . $chart['explanation'] . "\n";
$chart_found = TRUE;
}
}
}
_quiz_stats_print_chart($charts['takeup']);
_quiz_stats_print_chart($charts['top_scorers']);
_quiz_stats_print_chart($charts['status']);
_quiz_stats_print_chart($charts['grade_range']);
if (!$chart_found) {
echo '<p>' . t('If there are no statistics for this quiz (or quiz revision), this is probably because nobody has yet run this quiz (or quiz revision). If the quiz has multiple revisions, it is possible that the other revisions do have statistics. If this is the last revision, taking the quiz should generate some statistics.') . '</p>';
}