I have a "new comments" menu item in the user-menu that is generated by a view. I would like to change the title of the menu to include the number of new comments.
I tried using hook_menu_alter without success. I cleared the cache and rebuilt the menu using the devel function.
function newcomments_menu_alter(&$items){
$items['newcomments']['title'] = '5 New Comments';
}
When I add a menu item with hook_menu() I can dynamically change the title with a custom "title callback" function. But I can't figure out what the "page callback" is to display the view.