public function LongAnswerQuestion::delete in Quiz 7.5
Same name and namespace in other branches
- 6.6 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
- 6.3 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
- 6.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
- 6.5 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
- 7.6 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
- 7 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
- 7.4 question_types/long_answer/long_answer.classes.inc \LongAnswerQuestion::delete()
Implementation of delete().
Overrides QuizQuestion::delete
See also
File
- question_types/
long_answer/ long_answer.classes.inc, line 51 - Long answer classes.
Class
- LongAnswerQuestion
- Extension of QuizQuestion.
Code
public function delete($only_this_version = FALSE) {
$delete_node = db_delete('quiz_long_answer_node_properties');
$delete_node
->condition('nid', $this->node->nid);
if ($only_this_version) {
$delete_node
->condition('vid', $this->node->vid);
}
$delete_node
->execute();
parent::delete($only_this_version);
}