function CourseObjectQuiz::getStatus in Course 7.2
Same name and namespace in other branches
- 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::getStatus()
Get the status of this quiz for the requirements list.
Overrides CourseObject::getStatus
File
- modules/
course_quiz/ course_quiz.classes.inc, line 153
Class
Code
function getStatus() {
global $user;
$grade = $this
->isGraded() ? t('Your grade: %grade_result%<br/>Pass grade: %passing_grade%', array(
'%grade_result' => $this
->getFulfillment($user)
->getOption('grade_result'),
'%passing_grade' => $this
->getOption('passing_grade'),
)) : '';
return $grade;
}