On http://api.drupal.org/api/function/template_preprocess_poll_results/6 there is a reference to theme_poll_results():

See also
theme_poll_results()

However in D6, theme_poll_results() no longer exists.

CommentFileSizeAuthor
#4 361225.patch1.02 KBnvahalik
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

add1sun’s picture

Project: Documentation » Drupal core
Version: » 6.x-dev
Component: Outdated » documentation

API docs go in the core queue, especially since this will require a patch to poll.module.

jhodgdon’s picture

Version: 6.x-dev » 7.x-dev

Note that someone (sigh) has made a dummy theme_poll_results() function in Drupal 6. Please remove the @see in template_preprocess_poll_results(). There is already a reference to poll_results.tpl.php, which is the correct reference.

This needs to be fixed first in Drupal 7.

jhodgdon’s picture

Issue tags: +Novice

To clarify: Please remove the @see that points to theme_poll_results, which is not really a function.

Also this one has the wrong file name: @see poll-results-block.tpl.php

Good project for a novice!

nvahalik’s picture

Title: reference to theme_poll_results() » Update poll.module to remove reference to theme_poll_results() and fix template file references
Status: Active » Needs review
FileSize
1.02 KB

Let's try this patch.

cwgordon7’s picture

Status: Needs review » Reviewed & tested by the community

Looks pretty good! Nicely done. :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Great work! :) Committed to HEAD!

Status: Fixed » Closed (fixed)
Issue tags: -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.