I've been trying for a week now to theme quizzes. In particular I'm trying to theme the questions themselves. I cannot seem to find the right theme hooks or preprocessing to override with. It seems that the quiz module doesn't render the questions using the theming, but form rendering functions for which I cannot figure out how to preempt and render the form on my own. I have seen places where question data comes through, but I'd then have to recreate the form by hand, a waste of effort if the quiz module is already doing this.
Lastly, and most strangely, when I call drupal_get_form() on a node which cintains a multiple choice question within a mutlichoice question, I can print the resulting "form"... but its not no s.
Any pointers.. and even an example (!), would be much appreciated.
jyg
Comments
Comment #1
jyg commentedSorry, that last line should be:
Lastly, and most strangely, when I call drupal_get_form() on a node which contains a mutlichoice question, I can print the resulting form's markup, but it there's no input tags. Weird, no? Its got all the answer text and formatting in there, but not .
And since I'm ammending this post... I also do not understand why there's a bunch of theming function which never get used in the module. I wish they did, because then I'd override them!
Comment #2
falcon commentedI'm only working on quiz 4.x. Hopefully we will see quiz 4.x RC soon. I hope it is a little bit easier to theme, and we will try to solve any difficulties you have with it...
Comment #3
jyg commentedSo I can find some sanity in your comment being a legitimization of my troubles... and its not that I simply suck at Drupal?:D
I am working on a client project right now, and have already blown a significant chunk of dev time trying to wrap my tiny brain around this. Do you recommend I go to 4 now? Would it be truly foolish to use it in production? Or, do you have any pointers for me to move ahead in theming 3?
Thanks for taking the time to comment.
Comment #4
falcon commentedSome parts of quiz 3 is probably hard to theme yes :)
I recommend you to wait for the Quiz 4 release candidate. I hope we will release it next month.
Comment #5
djdevinThis issue is being closed because it is filed against a version that is no longer supported.