public function CourseObjectQuiz::getReports in Course 7
Same name and namespace in other branches
- 6 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getReports()
- 7.2 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getReports()
Let the course object provide its own reports.
Return value
array An array indexed by report key, containing 'title' which is the menu link in the course object reports.
Overrides CourseObject::getReports
See also
CourseObjectQuiz::getReports()
File
- modules/
course_quiz/ course_quiz.classes.inc, line 110
Class
Code
public function getReports() {
$reports = parent::getReports();
$reports['results'] = array(
'title' => t('Results'),
);
if (module_exists('quiz_stats')) {
$reports['statistics'] = array(
'title' => t('Statistics'),
);
}
return $reports;
}