[drupal-devel] Remove menu item
I'd been playing with a module that creates aditional URLS. As per 'Module's developer manual' I'd implemente the _menu hook. But, this way, an item is added to the navigation menu. How can I get rid of it ? Regards, maykel -- ,''`. Debian GNU/Linux : :' : The universal & free Operating System `. `' http://www.debian.org/ `-
I'd been playing with a module that creates aditional URLS. As per 'Module's developer manual' I'd implemente the _menu hook. But, this way, an item is added to the navigation menu. How can I get rid of it ?
MENU_CALLBACK: Callbacks simply register a path so that the correct function is fired when the URL is accessed. So, define 'type' => MENU_CALLBACK I'll consult JonBob about updating the docs 'cos this is really not evident. Regards Karoly Negyesi
I'd been playing with a module that creates aditional URLS. As per 'Module's developer manual' I'd implemente the _menu hook. But, this way, an item is added to the navigation menu. How can I get rid of it ?
MENU_CALLBACK: Callbacks simply register a path so that the correct function is fired when the URL is accessed.
So, define 'type' => MENU_CALLBACK
I'll consult JonBob about updating the docs 'cos this is really not evident.
It is quite clear, if you read the menu hook docs, but it can be better :) Goba
participants (3)
-
Gabor Hojtsy -
Maykel Moya -
Negyesi Karoly