The output of poll_pages() is very simple:

  $output = '<ul>';
  foreach ($queried_nodes as $node) {
    $output .= '<li>' . l($node->title, "node/$node->nid") . /*' - ' . format_plural($node->votes, '1 vote', '@count votes') .*/ ' - ' . ($node->active ? 
t('open') : t('closed')) . '</li>';
  }
  $output .= '</ul>';
  $output .= theme('pager');
  return $output;

Unfortunately there's no easy way to customize the individual line display, so e.g. if you want to remove the actual vote counts there's no easy way without leaving two dashes floating in between the title & active status.

CommentFileSizeAuthor
#3 1451318-3-theme_poll_page.patch2.09 KBadammalone
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cweagans’s picture

Issue tags: +Needs backport to D7
alexpott’s picture

Project: Drupal core » Poll
Version: 8.x-dev » 8.x-1.x-dev
Component: poll.module » Code

Poll is no longer part of core

adammalone’s picture

Category: bug » feature
FileSize
2.09 KB

Is this what you had in mind?

adammalone’s picture

Issue summary: View changes

We should also look at providing a default view for the poll page at /poll(s) too.

Berdir’s picture

Status: Active » Closed (won't fix)

This doesn't exist anymore, we have a view instead now.