function _quiz_question_teaser_content in Quiz 6.4
Same name and namespace in other branches
- 8.4 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
- 7.6 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
- 7 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
- 7.4 question_types/quiz_question/quiz_question.module \_quiz_question_teaser_content()
Form for teaser display
Parameters
$node: The question node
Return value
Content array
1 call to _quiz_question_teaser_content()
- quiz_question_view in question_types/
quiz_question/ quiz_question.module - Implementation of hook_view()
File
- question_types/
quiz_question/ quiz_question.module, line 225 - Quiz Question module. This module provides the basic facilities for adding quiz question types to a quiz.
Code
function _quiz_question_teaser_content($node) {
$content['question'] = array(
'#type' => 'markup',
'#value' => check_markup($node->body, $node->format, FALSE),
);
$type = node_get_types('type', $node);
$content['question_type'] = array(
'#type' => 'markup',
'#value' => '<div class="question_type_name">' . $type->name . '</div>',
'#weight' => -1,
);
return $content;
}