function simplemenu_multi_menu_theme_menu_item_link in SimpleMenu 6
Same name and namespace in other branches
- 7 simplemenu_multi_menu.module \simplemenu_multi_menu_theme_menu_item_link()
\brief Transform the menu item link.
This function intercepts the menu item link theming function of the system and
1 string reference to 'simplemenu_multi_menu_theme_menu_item_link'
- simplemenu_multi_menu_theme_registry_alter in ./
simplemenu_multi_menu.module - \brief Alter the menu item link theme registry.
File
- ./
simplemenu_multi_menu.module, line 68 - Make all the simplemenu parent menu items non-clickable.
Code
function simplemenu_multi_menu_theme_menu_item_link($link) {
global $theme;
static $cnt = 0;
// this is a drop down?
if (!empty($link['simplemenu_multi_menu_root']) && simplemenu_running()) {
++$cnt;
return '<a name="menu-id-' . $cnt . '">' . $link['title'] . '</a>';
}
// got a theme function?
$themes = variable_get('simplemenu_multi_menu_theme_function', array());
if (isset($themes[$theme])) {
return $themes[$theme]($link);
}
// somehow the preprocess function did not get called?!
// use the core default
return theme_menu_item_link($link);
}