hook_menu_alter() doesn't work Possible Duplicate:
  hook_menu_alter() is not working  




I have implemented a hook function hook_menu_alter in a module I have created. I have printed something inside that function call but nothing shows up. Though the function hook_init() is executed from the same module. The output of the hook_init shows up in the page but not from the hook_menu_alter even after clearing the cache. Do somebody has any idea regarding this issue?

function mymodule_init(){
print "here";
}

function mymodule_menu_alter(&amp;$items) {
print "I am here";
return $items;
}
hook_menu and hook_menu_alter are only called when rebuilding the menu table, not on each table load.  So you won't see your print statements.

As a side note, I would use drupal_set_message() rather than print when debugging.