function CourseObjectQuiz::getOptionsSummary in Course 7.2
Same name and namespace in other branches
- 6 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getOptionsSummary()
- 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getOptionsSummary()
Get core options summary.
Return value
array An associative array of summary keys and values.
Overrides CourseObjectNode::getOptionsSummary
File
- modules/
course_quiz/ course_quiz.classes.inc, line 137
Class
Code
function getOptionsSummary() {
$summary = parent::getOptionsSummary();
if ($this
->getInstanceId()) {
if (course_quiz_quiz_version() >= 5) {
$summary['questions'] = l(t('Edit questions'), "node/{$this->getInstanceId()}/quiz/questions");
}
else {
$summary['questions'] = l(t('Edit questions'), "node/{$this->getInstanceId()}/questions");
}
}
return $summary;
}