You are here

protected function QuizQuestionResponse::getFormat in Quiz 7.6

Same name and namespace in other branches
  1. 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFormat()
  2. 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFormat()

Utility function that returns the format of the node body

File

question_types/quiz_question/quiz_question.core.inc, line 819
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

protected function getFormat() {
  $body = field_get_items('node', $this->question, 'body');
  return $body ? $body[0]['format'] : NULL;
}