I am trying to figure out why hook_menu implementation is not working anymore after upgrade from 7.4 to 7.10 for a custom module Menu links were working properly until update to latest version. after update all custom module links are deleted from table menu_links and menu_router.
ex. of one of the menu link:
$items = array();
$items['a/main'] = array(
'page callback' => 'main',
'description' => 'Main front page',
'access callback' => TRUE,
);
return $items;
This code was working properly in 7.4 but not anymore. Have tried to do all cache clearing, menu_rebuild()... etc. nothing seems to work.
Even tried to copy sample code from hook_menu API page like function mymodule_menu() { $items['abc/def'] = array( 'page callback' => 'mymodule_abc_view', ); return $items; }
function mymodule_abc_view($ghi = 0, $jkl = '') {
// ...
}
and does not work as well.
So I am wondering if anything changed after 7.4 version or I am really missing obvious details?
Thank you for comments.