function poll_view
Implements hook_view().
File
-
modules/
poll/ poll.module, line 673
Code
function poll_view($node, $view_mode) {
if (!empty($node->allowvotes) && empty($node->show_results)) {
$node->content['poll_view_voting'] = drupal_get_form('poll_view_voting', $node);
}
else {
$node->content['poll_view_results'] = array(
'#markup' => poll_view_results($node, $view_mode),
);
}
return $node;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.