protected function QuizQuestionResponse::getFormat in Quiz 7.4
Same name and namespace in other branches
- 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFormat()
- 7.5 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFormat()
Utility function that returns the format of the node body
2 calls to QuizQuestionResponse::getFormat()
- MatchingResponse::getReportFormResponse in question_types/
matching/ matching.classes.inc - Implementation of getReportFormResponse
- TrueFalseResponse::getReportFormResponse in question_types/
truefalse/ truefalse.classes.inc - Implementation of getReportFormResponse
File
- question_types/
quiz_question/ quiz_question.core.inc, line 970 - 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;
}