You are here

function course_quiz_quiz_scored in Course 7

Same name and namespace in other branches
  1. 7.2 modules/course_quiz/course_quiz.module \course_quiz_quiz_scored()

Implements hook_quiz_scored().

Update the fulfillment record when scored manually.

File

modules/course_quiz/course_quiz.module, line 42

Code

function course_quiz_quiz_scored($quiz, $score, $rid) {
  if ($score['is_evaluated']) {
    $session_data = array(
      'result_id' => $rid,
    );
    course_quiz_quiz_finished($quiz, $score, $session_data);
  }
}