I am implementing categories in a module that I am developing. The guide has gotten me quite a ways there -- I can display the correct category menu in my forms where I want it. However, I am a bit confused how this information get saved with the other data the user is adding. Let me be specific to my problem and maybe people can explain this. I am writing a hookable quiz module that you can add to other content modules that will attach a gradable quiz to the end of the content. Right now I am just working on the questions, which I would like the user to be able to place into categories. So I have the form set up with text areas for the question and then an answer area, etc. And also this displays the category menu. When the user hits the create button, I grab the data and put it in the DB table, and that is all fine and good.
- My question is, do I need to grab the category information, and if so, how do I do that.
- If I later want to edit that information, do I need to do anything special to make sure the category menu displays the right category for a question? (I looked at the Pages module and it seems like I don't)
- I also want the user to be able organize the questions, into quizzes. These quizzes are what will actually be hookable to other content pages. When I display a create quiz interface, I want the questions to display, organized by categories. How do I get the category information?
