You are here

public function TrueFalseResponse::delete in Quiz 6.6

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

File

question_types/truefalse/truefalse.classes.inc, line 174
Defines the classes necessary for a True/False quiz.

Class

TrueFalseResponse

Code

public function delete() {
  $sql = "DELETE FROM {quiz_truefalse_user_answers} WHERE question_nid = %d AND question_vid = %d AND result_id = %d";
  db_query($sql, $this->question->nid, $this->question->vid, $this->rid);
}