You are here

public function QuizQuestionH5PResponse::delete in Quiz 7.4

Delete result row for this question.

Overrides QuizQuestionResponse::delete

File

question_types/quiz_h5p/QuizQuestionH5PResponse.class.inc, line 8

Class

QuizQuestionH5PResponse

Code

public function delete() {
  db_delete('quiz_h5p_user_results')
    ->condition('question_nid', $this->question->nid)
    ->condition('question_vid', $this->question->vid)
    ->condition('result_id', $this->rid)
    ->execute();
}