You are here

function node_makemeeting_view in Make Meeting Scheduler 6

Same name and namespace in other branches
  1. 7 makemeeting.module \node_makemeeting_view()

If $teaser is TRUE, we return empty string, so we can hide the poll body from the list site/node.

File

./makemeeting.module, line 566
Make Meeting module

Code

function node_makemeeting_view($node, $teaser = FALSE, $page = FALSE) {
  $node = node_prepare($node, $teaser);
  if (!$teaser) {
    $node->content['poll_panel'] = array(
      "#value" => theme("makemeeting_showpoll_theme", $node, drupal_get_form('makemeeting_pollpanel_form', $node)),
      "#weight" => 1,
    );
  }
  return $node;
}