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.
We need to select different menus based on fairly odd criteria, such as host name. To achieve this we have added the following hook invokation to the end of the menu_block_get_config function:
function menu_block_get_config($delta = NULL) {
:
:
$altered_config = module_invoke_all('menu_block_config_alter', $config);
if ($altered_config)
$config = $altered_config;
return $config;
}
It would be great if this could be incorporated into menu_blocks.
Comments
Comment #1
gugrim CreditAttribution: gugrim commented