public function CourseObjectQuiz::unenroll in Course 6
Same name and namespace in other branches
- 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
Code
public function unenroll() {
parent::unenroll();
$fulfillment = $this
->getFulfillment();
quiz_delete_results((array) $fulfillment
->getOption('quiz_result_ids'));
}