Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
anrikun CreditAttribution: anrikun commentedThanks for noticing this! If you have some time, you may provide a patch.
Comment #2
anandkp CreditAttribution: anandkp commentedWill do!
Comment #3
johnvPlease check out #2564289: menu_firstchild_menu_link_alter() interferes with other modules, which contains this change.