You are here

protected function QuizQuestionResponse::getFormat in OG Quiz 7

Utility function that returns the format of the node body

File

includes/og_quiz_question.php, line 1132
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;
}