Skip to content
Snippets Groups Projects
Commit 768d8461 authored by Sivaji Ganesh Jojodae's avatar Sivaji Ganesh Jojodae
Browse files

#536116 by rfay | turadg | capono | r_honey : Fixed Multichoice module causes...

#536116 by rfay | turadg | capono | r_honey : Fixed Multichoice module causes string of access_denied() in cron, search output and node preview.
parent e8355dea
No related branches found
No related tags found
No related merge requests found
......@@ -675,18 +675,12 @@ function multichoice_load($node) {
* Implementation of hook_view().
*/
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;
if ($teaser) {
return node_prepare($node, $teaser);
}
else {
drupal_access_denied();
$node->content['body'] = array('#value' => multichoice_render_question($node));
return $node;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment