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.
The current page isn't associated with a menu item. I am trying to get menu_block to display as though it were on a different page. Toyed around with menu_set_item but couldn't get anywhere with it.
$block = module_invoke('menu_block', 'block', 'view', 1);
print print_r($block);
Any help would be appreciated.
Comments
Comment #1
JohnAlbin