function theme_admin_drilldown_menu_item_link in Admin 6.2
Same name and namespace in other branches
- 7.2 theme/theme.inc \theme_admin_drilldown_menu_item_link()
Alternative to theme_menu_item_link().
1 theme call to theme_admin_drilldown_menu_item_link()
- theme_admin_drilldown_menu_tree_output in theme/
theme.inc - Alternative to menu_tree_output() which uses admin implementations of the core menu theme functions.
File
- theme/
theme.inc, line 116
Code
function theme_admin_drilldown_menu_item_link($link) {
$link['localized_options'] = empty($link['localized_options']) ? array() : $link['localized_options'];
$link['localized_options']['html'] = TRUE;
$link['localized_options']['purl'] = array(
'disabled' => TRUE,
);
$link['description'] = check_plain(truncate_utf8(strip_tags($link['description']), 150, TRUE, TRUE));
$link['title'] .= !empty($link['description']) ? "<span class='menu-description'>{$link['description']}</span>" : '';
$link['title'] = filter_xss_admin($link['title']);
return l($link['title'], $link['href'], $link['localized_options']);
}