I have implemented 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 hook_init()
shows up in the page, but not from the hook_menu_alter()
even after clearing the cache.
Does anybody have any idea regarding this issue?
function mymodule_init(){
print "here";
}
function mymodule_menu_alter(&$items) {
print "I am here";
return $items;
}