function theme_menu_block_item_link in Menu Block 5.2
Same name and namespace in other branches
- 5 menu_block.module \theme_menu_block_item_link()
Generate the HTML output for a single menu link.
Parameters
$link: array The menu item to render.
Return value
string The rendered menu link.
1 theme call to theme_menu_block_item_link()
- menu_block_tree in ./
menu_block.module - Returns a rendered menu tree or menu list.
File
- ./
menu_block.module, line 249 - Provides configurable blocks of menu items.
Code
function theme_menu_block_item_link($link) {
if (empty($link['attributes'])) {
$link['attributes'] = array();
}
return l($link['title'], $link['path'], $link['attributes'], isset($link['query']) ? $link['query'] : NULL);
}