You are here

function quiz_question_nodeapi in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 question_types/quiz_question/quiz_question.module \quiz_question_nodeapi()
  2. 6.3 question_types/quiz_question/quiz_question.module \quiz_question_nodeapi()
  3. 6.4 question_types/quiz_question/quiz_question.module \quiz_question_nodeapi()

Implementation of hook_nodeapi().

File

question_types/quiz_question/quiz_question.module, line 372
Quiz Question module. This module provides the basic facilities for adding quiz question types to a quiz. While you can create standard Quiz question types simply by implementing the appropriate hooks, this module provides a framework that makes…

Code

function quiz_question_nodeapi(&$node, $op) {
  if ($op == 'delete revision') {
    _quiz_question_get_instance($node)
      ->delete();
  }
}