public function QuizQuestion::delete in Quiz 6.3
Same name and namespace in other branches
- 6.6 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.
5 methods override QuizQuestion::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.
- ShortAnswerQuestion::delete in question_types/
short_answer/ short_answer.classes.inc - Deletes a question from the database.
- TrueFalseQuestion::delete in question_types/
quiz_question/ quiz_question.truefalse.inc - Deletes a question from the database.
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);