It's true, but hook_menu is, after all, dealing with paths and links.

Paths and links are what allows us to navigate inside a site, and they are commonly combined in a menu.

If we checked it statistically, I'm sure we would have found that most of the items in the menu hook are not actually visible as menu items, but when thinking of a menu i a larger context, we find it's not at all a bad name.

A menu is a representation of a site's structure, whether it's a logical structure, or a more physic one. So in this way - even if an item is not visible, it's still part of the structure, and as a result - has its place in the menu.


Zohar


Karoly Negyesi wrote:
Today it was raised in #drupal that hook_menu has so little to do with menus nowadays that

hook_control

is likely to be a better name for the system. Thoughts are welcome. MVC flames are not.

Regards

NK