protected function QuizQuestionResponse::getFormat in Quiz 7.5
Same name and namespace in other branches
- 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFormat()
- 7.4 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFormat()
Utility function that returns the format of the node body.
Return value
string|null The format of the node body
File
- question_types/
quiz_question/ quiz_question.core.inc, line 821 - 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;
}