You are here

public function ClozeResponse::delete in Cloze 7

Same name and namespace in other branches
  1. 6 cloze.classes.inc \ClozeResponse::delete()

Implementation of delete()

See also

QuizQuestionResponse#delete()

File

./cloze.classes.inc, line 322
The main classes for the cloze question type. These inherit or implement code found in quiz_question.classes.inc.

Class

ClozeResponse
Extension of QuizQuestionResponse

Code

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