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.
By xbc on
In the HOOK_menu function, I have added a couple of menu items as MENU_LOCAL_TASK type to be shown together with Node "View", "Edit". The tabs show well and work well in terms of response to click. However, the new tabs are not turned 'active' when click.
the 'View' tab is alreadys 'active' instead.
Kindly advise me whether I have missed out some thing to turn the 'active' tab switching on or I have done something to prevent it turning on.
Thanks.
Comments
Would need your code
Your code would be needed to see where the problem is. Have a look at the use of MENU_DEFAULT_LOCAL_TASK in some of the core modules.