You are here

public function CourseObjectQuiz::unenroll in Course 6

Same name and namespace in other branches
  1. 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::unenroll()

Remove all quiz attempts associated with this fulfillment.

File

modules/course_quiz/course_quiz.classes.inc, line 117

Class

CourseObjectQuiz

Code

public function unenroll() {
  parent::unenroll();
  $fulfillment = $this
    ->getFulfillment();
  quiz_delete_results((array) $fulfillment
    ->getOption('quiz_result_ids'));
}