function node_makemeeting_view in Make Meeting Scheduler 7
Same name and namespace in other branches
- 6 makemeeting.module \node_makemeeting_view()
Implementation of hook_node_view()
File
- ./
makemeeting.module, line 656 - Make Meeting module
Code
function node_makemeeting_view($node, $view_mode) {
// We hide the poll body from the list site/node if it is not direct access
// @TODO take this to another level, maybe hook_node_access
if (!preg_match("/" . $node->poll_url . "/i", request_uri())) {
$node->content = array();
}
else {
$node->content['poll_form'] = drupal_get_form('makemeeting_pollpanel_form', $node);
$node->content['poll_panel'] = array(
"#markup" => theme('makemeeting_pollpanel', array(
'node' => $node,
)),
);
}
return $node;
}