This is my first module, and I need some help.
It's a calendar in full size (content area) and the user can click on any day to add an item to that day.
When the user clicks to add he first gets a list of existing items to chose from, and if none exist he can chose to add one himself.
Now the thing is that this service of viewing and adding items should be available from more places so it seemed like a smart idea to make it as a module so it cam be reached from many pages.
So two modules in total (one for creating the calendar and one for for the adding of items)
The first module (the calendar) I think I know how to do, I add it to menu and then through theming functions generate the html to create it by simply returning the html from the function called (the function binded in hook_menu).
So far so good, but this is when it gets tricky for me.
The second part, the adding of items.
They way I imagine it whenever I click a day in the calendar (generated by the other module) a div should pop up where the user can browse available items and add them. The pop up functionality is the whole issue here... the actual content of the div is a breeze
The problem here is... It's the other module(calendar) that was invoked by the hook_menu... How can I integrate the modules in the way I described?