You are here

function CourseObjectQuiz::getStatus in Course 7

Same name and namespace in other branches
  1. 7.2 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 202

Class

CourseObjectQuiz

Code

function getStatus() {
  $grade = $this
    ->isGraded() ? t('Your grade: %grade_result%<br/>Pass grade: %passing_grade%', array(
    '%grade_result' => $this
      ->getFulfillment()
      ->getOption('grade_result'),
    '%passing_grade' => $this
      ->getOption('passing_grade'),
  )) : '';
  return $grade;
}