You are here

public function QuizQuestionResponse::refreshQuestionNode in Quiz 7

Same name and namespace in other branches
  1. 6.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::refreshQuestionNode()
  2. 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::refreshQuestionNode()
  3. 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::refreshQuestionNode()
  4. 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::refreshQuestionNode()

Used to refresh this instances question node in case drupal has changed it.

Parameters

$newNode: Question node

File

question_types/quiz_question/quiz_question.core.inc, line 660
Classes used in the Quiz Question module.

Class

QuizQuestionResponse
Each question type must store its own response data and be able to calculate a score for that data.

Code

public function refreshQuestionNode($newNode) {
  $this->question = $newNode;
}