You are here

public function ShortAnswerResponse::delete in Quiz 7.5

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

Implementation of delete().

Overrides QuizQuestionResponse::delete

See also

QuizQuestionResponse::delete()

File

question_types/short_answer/short_answer.classes.inc, line 343
Short answer classes.

Class

ShortAnswerResponse
Extension of QuizQuestionResponse.

Code

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