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.
I want to have a default menu selection in case the current page isn't on a menu. So I'm looking at hook_menu_block_tree_alter think that is the tree is empty I could load it. I've implement mymodule_menu_block_tree_alter which currently just has a drupal_set_message in it to check it is called. I'm not seeing a message so this is never called, even when menu_block finds a menu to display with or displays a menu_block. Why? What am I doing wrong?
Comments
Comment #1
malc_b CreditAttribution: malc_b commentedI've come up with a work around which is in this post http://drupal.org/node/1349446
Comment #2
JohnAlbinSorry for not responding sooner!