function admin_menu_item_link in Administration menu 6
Same name and namespace in other branches
- 5 admin_menu.inc \admin_menu_item_link()
High-performance implementation of theme_menu_item_link().
This saves us a theme() call and does only the absolute minimum to get the admin menu links rendered.
1 call to admin_menu_item_link()
- admin_menu_tree_output in ./
admin_menu.module - Returns a rendered menu tree.
File
- ./
admin_menu.module, line 183 - Renders a menu tree for administrative purposes as a dropdown menu at the top of the window.
Code
function admin_menu_item_link($link) {
// Omit alias lookups.
$link['localized_options']['alias'] = TRUE;
return '<a href="' . check_url(url($link['href'], $link['localized_options'])) . '">' . (!empty($link['localized_options']['html']) ? $link['title'] : check_plain($link['title'])) . '</a>';
}