Project:Drupal core
Version:x.y.z
Component:poll.module
Category:bug report
Priority:normal
Assigned:Stefan Nagtegaal
Status:closed (fixed)

Issue Summary

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...

Comments

#1

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!

AttachmentSizeStatusTest resultOperations
make-poll-results-themable.patch4.45 KBIgnored: Check issue status.NoneNone

#2

Status:active» needs review

Setting correct status...

#3

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

new patch as requested by steven

AttachmentSizeStatusTest resultOperations
poll-module-themable.patch4.38 KBIgnored: Check issue status.NoneNone

#5

Status:needs review» reviewed & tested by the community

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

#6

Updated as requested by Dries...

AttachmentSizeStatusTest resultOperations
make-poll-results-themable_0.patch4.45 KBIgnored: Check issue status.NoneNone

#7

Renamed patch and uploaded new version

AttachmentSizeStatusTest resultOperations
poll-themability.patch4.36 KBIgnored: Check issue status.NoneNone

#8

Status:reviewed & tested by the community» fixed

Committed to HEAD. Thanks.

#9

Status:fixed» closed (fixed)
nobody click here