function menu_icons_theme_registry_alter in Menu Icons 7.3
Implements hook_theme_registry_alter() Override the nodehierarchy child links function.
Parameters
$theme_registry:
File
- ./
menu_icons.module, line 27 - Module to associate icons with menu items
Code
function menu_icons_theme_registry_alter(&$theme_registry) {
// Override the link theming functions to hide titles if so configured.
if (variable_get('menu_icons_hide_titles', FALSE)) {
if (!empty($theme_registry['menu_link'])) {
$theme_registry['menu_link']['function'] = 'menu_icon_menu_link';
}
if (!empty($theme_registry['link'])) {
$theme_registry['link']['function'] = 'menu_icon_link';
}
}
}