Problem
I have a content type that is a "Group content type". The content type should not be added to the menu and so no menus have been set available in the content type.
og_menu adds the menu array to the content type form regardless of the settings in the content type.
Right now the menu settings ends up a bit messy on top of the form instead of in a nice vertical tab when the content type isn't set to be available in any menu.
I dont know the best solution for how to solve this. I guess a group content type could be set to not be available in any non-og-menu but in og-menus?
Solution
We could add a check if the content type is set to be available in any of the normal menus and then add the menu array.
Comments
Comment #1
pontus_nilssonAttached is a patch on how menu module determines if the node can be in a menu or not. Any other ideas on how to solve this?
Comment #2
rv0 commentedI should check it out first, but it might work with a simple isset() too...
Comment #3
rv0 commentedCould not reproduce this, so maybe this is already fixed.
Please re-open and provide details if not.
I noticed the menu.module adds a menu array even if no menu is enabled, so isset() won't work.