function CourseObjectQuiz::getTakeUrl in Course 7.2
Same name and namespace in other branches
- 6 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getTakeUrl()
- 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getTakeUrl()
The take URL of the quiz is /take.
Overrides CourseObjectNode::getTakeUrl
File
- modules/
course_quiz/ course_quiz.classes.inc, line 19
Class
Code
function getTakeUrl() {
if ($this
->getOption('quiz_goto') == "view") {
return url("node/{$this->getInstanceId()}");
}
else {
return url("node/{$this->getInstanceId()}/take");
}
}