Attached is a patch that will allow the order of answers to be randomized when the poll is viewed. There is a checkbox on the node add/edit screen that allows the creator/editor to specify whether the answers are to be randomized for the particular poll.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | randomize_answers.patch | 7.43 KB | wonder95 |
| #2 | randomize_answers.patch | 7.08 KB | wonder95 |
| randomize_answers.patch | 6.32 KB | wonder95 |
Comments
Comment #1
anarcat commentedThank you for your contribution to the project! I think this feature would be a great addition, and barring any major issue in testing, I think it should go in. I have some nitpicking over the patch here, and I need to test it before committing it, but it's otherwise a very welcome addition that I hope will make it in the next release.
Here's the quick code-wise review.
this should be update_6000, since we're in D6 now
why is that necessary? i remember this assignment was necessary for the form display...
Comment #2
wonder95 commentedI think you looked at the wrong function, because I did have decisions_update_6(). Changed it to decisions_update_6000().
I'm not sure why I had that line removed, so I added it back.
Also noticed I was missing an update for selections.module, and my update and insert queries in decisions.module weren't quite right.
Re-rolled patch is attached.
Comment #3
wonder95 commentedDid some more cleanup:
Comment #4
anarcat commentedCommitted thanks!