[development] Splitting hook_menu into hook_menu and hook_router

Dries Buytaert dries.buytaert at gmail.com
Wed Jan 17 17:53:45 UTC 2007


On 17 Jan 2007, at 13:13, adrian rossouw wrote:
>>> With path being unique in one and not unique in the other, I fail  
>>> to see  how the two could be unified. And I fail to see the point  
>>> as well. We  could lose path being an array key and make it a  
>>> property again in  hook_router as it was in old hook_menu but  
>>> then what shall happen if  someone defines two router items to  
>>> the same path? This is a mess. The  above is nice and clean.

> I think there are 2 paths involved in this. Menu path (where to  
> display the link) and target path.  I don't think there's a direct  
> correlation between the menu path and the callback path,
> although it might default to that.

Adrian, what do you mean with 'target path'?  Care to clarify?

--
Dries Buytaert  ::  http://www.buytaert.net/



More information about the development mailing list