Ken, My guess is this is probably what I want. Do you have a link to an example of what you mean exactly? I've looked at the API that Menu Block exports, but it isn't clear when it calls its hooks, or which alter hook I'd need to implement to modify its behavior.
Thanks, Rob On 03/21/2011 07:26 PM, Ken Rickard wrote: > This looks like another case of Menu Block with an alter hook to prepend the > parent items per user. > > > > On Mar 21, 2011, at 8:55 PM, Rob Thorne <[email protected]> wrote: > >> I'm looking into a two tiered menu in a D7 application where the second >> level of the menu is standard, but the top level is different for every >> user. >> >> To make this concrete, suppose the user is a teacher at a school where >> the teacher uses multiple rooms, and needs to order materials for each >> room separately. Each teacher has a separate list of rooms, but the the >> pages we track -- class lists, crafts inventory, furniture... are the >> same for each room. >> >> So for teacher A, we might have a set of menus like this: >> >> * Room 220 >> o Class List >> o Crafts Inventory >> o Furniture >> * Room 221 >> o Class List >> o Crafts Inventory >> o Furniture >> >> and so on. It's clear to me how to do a loader function and menu >> handler for a link like 'teacher/%teacher/room/%/class_list', but I >> don't see how to populate the level of the menus for '220' and '221' in >> the 3 position. >> >> In Drupal 5, I used to use the !$may_cache argument for these sorts of >> things. I'm not arguing that this was efficient, but it did work. What >> hooks would I need to use in addition to hook_menu to make this work in >> Drupal 7? >> >> Thanks, >> Rob Thorne >> Torenware Networks >>
