function poll_view

cis7 poll.module poll_view($node, $view_mode)
cle7 poll.module poll_view($node, $view_mode)
elmsmedia7 poll.module poll_view($node, $view_mode)
icor7 poll.module poll_view($node, $view_mode)
meedjum_blog7 poll.module poll_view($node, $view_mode)
mooc7 poll.module poll_view($node, $view_mode)

Implements hook_view().

1 call to poll_view()
poll_extras_ajax_poll_callback in sites/all/modules/elmsln_contrib/poll_extras/poll_extras.module
Override callback for poll/ajax. This allows this module to be compatible with ajax poll

File

modules/poll/poll.module, line 676
Enables your site to capture votes on different topics in the form of multiple choice questions.

Code

function poll_view($node, $view_mode) {
  global $user;
  $output = '';

  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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.