[support] D6 Getting hook_menu_alter to fire
Steve Edwards
killshot91 at gmail.com
Tue Jun 5 19:08:57 UTC 2012
This hook is only fired when the menu router is rebuilt, so if you're just refreshing a page, it won't be invoked.
Steve
On Jun 5, 2012, at 12:04 PM, Jeff Greenberg wrote:
> I'm sure I've done something dumb, but I have the following in a typical custom module, in the .module file, and cannot get it to fire. Yes, I've cleared cache, and no, it's not what I *really* want to do in the hook...I just put the exit there to see it fire, since it wasn't doing anything else I asked it to.
>
> /**
> * Implements hook_menu_alter()
> */
> function mymodule_menu_alter(&$items) {
> exit;
> }
> --
> [ Drupal support list | http://lists.drupal.org/ ]
More information about the support
mailing list