function multichoice_view in Quiz 6.5
Same name and namespace in other branches
- 5.2 multichoice.module \multichoice_view()
- 5 multichoice.module \multichoice_view()
- 6.6 question_types/multichoice/multichoice.module \multichoice_view()
- 6.2 multichoice.module \multichoice_view()
- 6.3 question_types/multichoice/multichoice.module \multichoice_view()
Implementation of hook_view().
File
- question_types/
multichoice/ multichoice.module, line 677 - Multiple choice question type for the Quiz module.
Code
function multichoice_view($node, $teaser = FALSE, $page = FALSE) {
if (!$teaser && $page) {
// This is not necessary:
//$mynode = node_prepare($node, $teaser);
$node->content['body'] = array(
'#value' => multichoice_render_question($node),
);
return $node;
}
elseif ($teaser) {
$node = node_prepare($node, $teaser);
return $node;
}
else {
drupal_access_denied();
}
}