Thanks, both. I had been clearing cache, not just refreshing the page :-) but it turns out there is more than one level of caching to bust here.
On Tue, Jun 5, 2012 at 8:08 PM, Steve Edwards <killshot91@gmail.com> wrote:do this:
> 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;
>> }
function mymodule_menu_alter(&$items) {
dsm($items); // this will dump $items vars on all pages
}
--
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet