You are here

public function LongAnswerResponse::delete in OG Quiz 7

Implementation of delete

Overrides QuizQuestionResponse::delete

See also

QuizQuestionResponse#delete()

File

includes/og_long_answer.php, line 309
Long answer classes.

Class

LongAnswerResponse
Extension of QuizQuestionResponse

Code

public function delete() {
  db_delete('quiz_long_answer_user_answers')
    ->condition('question_nid', $this->question->nid)
    ->condition('question_vid', $this->question->vid)
    ->condition('result_id', $this->rid)
    ->execute();
}