function poll_results

Page callback: Displays the 'results' tab for the current poll.

This tab displays a summary of the votes that have been cast.

Parameters

$node: The poll node object.

Return value

An array suitable for use by drupal_render().

See also

poll_menu()

1 string reference to 'poll_results'
poll_menu in drupal/core/modules/poll/poll.module
Implements hook_menu().

File

drupal/core/modules/poll/poll.pages.inc, line 121
Page callbacks for the Poll module.

Code

function poll_results($node) {
  drupal_set_title($node
    ->label());
  $node->show_results = TRUE;
  return node_show($node);
}