Removes a need for a check in advpoll_view which makes the code easier to understand and removes some unneeded content rendered on the result page.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | advpoll_results_0.patch | 1.16 KB | anders.fajerson |
| advpoll_results.patch | 1.05 KB | anders.fajerson |
Comments
Comment #1
anders.fajerson commentedComment #2
ChrisKennedy commentedDoesn't apply.
Comment #3
anders.fajerson commentedRe-rolled.
Comment #4
anders.fajerson commentedStill applies (with fuzz). Bumping up from minor :)
Comment #5
ChrisKennedy commentedI can't see any difference in the output. What "unneeded content" are you referring to?
Comment #6
anders.fajerson commentedOk, "unneeded content" might have been a bit biased. But what I referred to was the submit date, description and optional question field. It can be argued if they indeed should be rendered on the result page, but I think that the simplification in advpoll_view() warrants their removal. I guess we could also render those fields individually, in that case this page should be wrapped in a theme function, maybe anyways, but that's another issue.
Comment #7
ChrisKennedy commentedAh, well I think those do need to be on the results page - showing the results without the question would be strange. Manually adding submit date & author to a template function also seems like a bad idea, because they are controlled at admin/build/theme/settings.
Comment #8
anders.fajerson commentedYeah, I can agree.