Self-explanatory, was just looking into the module cause I want firstchild menu items to show up regardless of whether or not they have children links. I noticed that $menu is being passed into the function (though it's not used, that's why this is minor) and thought I'd mention it...

// OLD CODE: @file menu_firstchild.module | @line 33
function menu_firstchild_menu_link_alter(&$item, $menu) {
  ...
}
// NEW CODE: @file menu_firstchild.module | @line 33
function menu_firstchild_menu_link_alter(&$item) {
  ...
}

Thanks for your efforts! This is a very useful module!

Comments

anrikun’s picture

Thanks for noticing this! If you have some time, you may provide a patch.

anandkp’s picture

Will do!

johnv’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)