public function ClozeQuestion::delete in Cloze 7
Same name and namespace in other branches
- 6 cloze.classes.inc \ClozeQuestion::delete()
Implementation of delete()
See also
QuizQuestion#delete($only_this_version)
File
- ./
cloze.classes.inc, line 60 - The main classes for the cloze question type. These inherit or implement code found in quiz_question.classes.inc.
Class
- ClozeQuestion
- Extension of QuizQuestion.
Code
public function delete($only_this_version = FALSE) {
parent::delete($only_this_version);
$delete_ans = db_delete('quiz_cloze_user_answers');
$delete_ans
->condition('question_nid', $this->node->nid);
if ($only_this_version) {
$delete_ans
->condition('question_vid', $this->node->vid);
}
$delete_ans
->execute();
}