public function QuizQuestion::delete in Quiz 6.6
Same name and namespace in other branches
- 6.3 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
- 6.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
- 6.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
- 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
- 7 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
- 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
- 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestion::delete()
Deletes a question from the database.
Parameters
$only_this_version: If the $only_this_version flag is TRUE, then only the particular nid/vid combo should be deleted. Otherwise, all questions with the current nid can be deleted.
7 methods override QuizQuestion::delete()
- ChoiceQuestion::delete in question_types/
choice/ choice.classes.inc - Implementation of delete
- LongAnswerQuestion::delete in question_types/
long_answer/ long_answer.classes.inc - Deletes a question from the database.
- MatchingQuestion::delete in question_types/
matching/ matching.classes.inc - Deletes a question from the database.
- QuizDirectionsQuestion::delete in question_types/
quiz_directions/ quiz_directions.classes.inc - Deletes a question from the database.
- ScaleQuestion::delete in question_types/
scale/ scale.classes.inc - Implementation of delete
File
- question_types/
quiz_question/ quiz_question.core.inc, line 81 - Classes used in the Quiz Question module.
Class
- QuizQuestion
- A Quiz Question. There should be an implementation of this interface for every question type support by Quiz.
Code
public function delete($only_this_version = FALSE);