protected function QuizQuestion::getFormat in OG Quiz 7
Utility function that returns the format of the node body
1 call to QuizQuestion::getFormat()
- LongAnswerQuestion::getNodeView in includes/
og_long_answer.php - Implementation of getNodeView
File
- includes/
og_quiz_question.php, line 723 - Classes used in the Quiz Question module.
Class
- QuizQuestion
- A base implementation of a quiz_question, adding a layer of abstraction between the node API, quiz API and the question types.
Code
protected function getFormat() {
$node = isset($this->node) ? $this->node : $this->question;
$body = field_get_items('node', $node, 'body');
return isset($body[0]['format']) ? $body[0]['format'] : NULL;
}