You are here

public function TrueFalseResponse::delete in Quiz 7.5

Same name and namespace in other branches
  1. 6.6 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::delete()
  2. 6.3 question_types/quiz_question/quiz_question.truefalse.inc \TrueFalseResponse::delete()
  3. 6.4 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::delete()
  4. 6.5 question_types/quiz_question/quiz_question.truefalse.inc \TrueFalseResponse::delete()
  5. 7.6 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::delete()
  6. 7 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::delete()
  7. 7.4 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::delete()

Implementation of delete().

Overrides QuizQuestionResponse::delete

See also

QuizQuestionResponse::delete()

File

question_types/truefalse/truefalse.classes.inc, line 241
TrueFalse classes.

Class

TrueFalseResponse
Extension of QuizQuestionResponse.

Code

public function delete() {
  db_delete('quiz_truefalse_user_answers')
    ->condition('result_answer_id', $this->result_answer_id)
    ->execute();
}