You are here

function quiz_question_has_been_answered in Quiz 7

Same name and namespace in other branches
  1. 8.4 question_types/quiz_question/quiz_question.module \quiz_question_has_been_answered()
  2. 6.4 question_types/quiz_question/quiz_question.module \quiz_question_has_been_answered()
  3. 7.6 question_types/quiz_question/quiz_question.module \quiz_question_has_been_answered()
  4. 7.4 question_types/quiz_question/quiz_question.module \quiz_question_has_been_answered()
  5. 7.5 question_types/quiz_question/quiz_question.module \quiz_question_has_been_answered()

@todo Please document this function.

See also

http://drupal.org/node/1354

2 calls to quiz_question_has_been_answered()
quiz_node_prepare in ./quiz.module
Implementation of hook_node_prepare().
quiz_node_presave in ./quiz.module
Implementation of hook_node_presave().

File

question_types/quiz_question/quiz_question.module, line 325
Quiz Question module. This module provides the basic facilities for adding quiz question types to a quiz.

Code

function quiz_question_has_been_answered($node) {
  $question_instance = _quiz_question_get_instance($node, true);
  return $question_instance
    ->hasBeenAnswered();
}