Poll results aren't themable

Stefan Nagtegaal - October 24, 2005 - 16:55
Project:Drupal
Version:x.y.z
Component:poll.module
Category:bug report
Priority:normal
Assigned:Stefan Nagtegaal
Status:closed
Description

The content of the poll block is full of hardcoded HTML. I consider all hardcoded HTML - which isn't inside theme_* functions - as a bug and file bug reports for them..

We should really improve this...

#1

Stefan Nagtegaal - October 26, 2005 - 09:35
Title:Poll block isn't themable» Poll results aren't themable
Assigned to:Anonymous» Stefan Nagtegaal

See attached patch...
I tried to make the theme functions as clean as possible, and I think I did a great job..
I also did some code moving, and variable renaming to make it a little easier.

Please review and apply!

AttachmentSize
make-poll-results-themable.patch 4.45 KB

#2

Stefan Nagtegaal - October 26, 2005 - 09:51
Status:active» needs review

Setting correct status...

#3

Bèr Kessels - October 26, 2005 - 12:37

Looks good. It applies, and it seems to work. I do not havea site with polls, so I cannot see if it breaks existing polls.

A big +1 for the theme functions though. And also for the var_name clean ups (was namevar)

#4

Stefan Nagtegaal - October 26, 2005 - 15:01

new patch as requested by steven

AttachmentSize
poll-module-themable.patch 4.38 KB

#5

Stefan Nagtegaal - October 29, 2005 - 21:28
Status:needs review» reviewed & tested by the community

Tested quite intens, and setting this Ready to commit...

#6

Stefan Nagtegaal - October 31, 2005 - 14:10

Updated as requested by Dries...

AttachmentSize
make-poll-results-themable_0.patch 4.45 KB

#7

Stefan Nagtegaal - October 31, 2005 - 14:26

Renamed patch and uploaded new version

AttachmentSize
poll-themability.patch 4.36 KB

#8

Dries - October 31, 2005 - 14:28
Status:reviewed & tested by the community» fixed

Committed to HEAD. Thanks.

#9

Anonymous - November 14, 2005 - 14:40
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.