Hi,
I wrote a little module (my first module in Drupal, yeah!) that I named quiz.module. A user can enter a new quiz question (question and answer), it then appears on the frontpage and other users try to find the answer. In my quiz.module, I have a view hook that adds to $node->content an answer_entry_form. My answer_entry_form_submit handles the comparison between the user's answer and the secret answer. Works well, I'm very happy!
Now, I want to do the same with a picture quiz (something like "guess who's on the photo?"). I have created a CCK content type with imagefield. I have created a page view with views but how could I add now the same kind of form I added with my first quiz (and the same kind of submit hook). Could it be done in Views? Do I have to write my own module here again? I'm not sure what is the utility of the export feature in Views, could it be useful? Can I copy/paste the code from export into a hook_view (of say picture-quiz.module) directly? And from then add my own form?
Thank you for your help,
Salma
Comments
=-=
user reposted question over in module development = http://drupal.org/node/643546
Rather then delete this question since it's been here awhile. Follow discussion, if any, at above link.