public function ShortAnswerResponse::delete in Quiz 7.4
Same name and namespace in other branches
- 6.6 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::delete()
- 6.3 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::delete()
- 6.4 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::delete()
- 6.5 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::delete()
- 7.6 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::delete()
- 7 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::delete()
- 7.5 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 401 - The main classes for the short answer question type.
Class
- ShortAnswerResponse
- Extension of QuizQuestionResponse
Code
public function delete() {
db_delete('quiz_short_answer_user_answers')
->condition('question_nid', $this->question->nid)
->condition('question_vid', $this->question->vid)
->condition('result_id', $this->rid)
->execute();
}