function sitemap_theme_suggestions_menu_alter in Sitemap 8.2
Implements hook_theme_suggestions_HOOK_alter().
File
- ./
sitemap.module, line 90 - Provides sitemap functionality.
Code
function sitemap_theme_suggestions_menu_alter(array &$suggestions, array $variables) {
if (!empty($variables['theme_hook_original'])) {
if ($variables['theme_hook_original'] == 'menu__sitemap') {
$menu_name = strtr($variables['menu_name'], '-', '_');
array_unshift($suggestions, 'menu__' . $menu_name);
$suggestions[] = 'menu__sitemap__' . $menu_name;
}
}
}