I have a component which creates content pages for custom entities.
I have an xml which allows to set those pages as menu items of that entity type.
I have 1 module that I always want to display on menu items of that type.
I have 1 module that I never want to display on menu items of that type.
Now I am trying to figure out how to spare my customer the hassle to keep going to the module manager to set and unset the module assignments every time they create a new menu item.
Is there a way to programmatically set the module assignments at time of menu creation? I have figured out where and how the assigments are stored in the database, but cannot seem to find an event for a plugin to hook into at menu creation.
Any hints or clues how to approach this?