You are here

function theme_admin_menu_item in Administration menu 5

Same name and namespace in other branches
  1. 5.3 admin_menu.module \theme_admin_menu_item()
  2. 5.2 admin_menu.module \theme_admin_menu_item()
  3. 6 admin_menu.module \theme_admin_menu_item()
1 theme call to theme_admin_menu_item()
theme_admin_menu_tree in ./admin_menu.inc
Generate the HTML for a menu tree.

File

./admin_menu.inc, line 273

Code

function theme_admin_menu_item(&$admin_items, $mid, $children = '', $leaf = true) {
  $class = array();
  if (!$leaf) {
    $class[] = 'expandable';
  }
  if (isset($admin_items[$mid]['class'])) {
    $class[] = $admin_items[$mid]['class'];
  }
  $output = '<li' . (!empty($class) ? ' class="' . implode(' ', $class) . '"' : '') . '>';
  $output .= admin_menu_item_link($admin_items, $mid) . $children . '</li>';
  return $output;
}