You are here

public function ShortAnswerResponse::delete in Quiz 6.3

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

Delete the response.

Overrides QuizQuestionResponse::delete

File

question_types/short_answer/short_answer.classes.inc, line 320
The main classes for the short answer question type.

Class

ShortAnswerResponse
The short answer question response class.

Code

public function delete() {
  $sql = 'DELETE FROM {quiz_short_answer_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);
}