You are here

function theme_submenu_tree_titles in Submenu Tree 7.2

Same name and namespace in other branches
  1. 5 submenutree.module \theme_submenu_tree_titles()
  2. 6 submenutree.module \theme_submenu_tree_titles()
  3. 7 submenutree.module \theme_submenu_tree_titles()
1 theme call to theme_submenu_tree_titles()
_submenutree_menutree_view in ./submenutree.module
View the menu tree, either by poking into $node->content, or via the block functions

File

./submenutree.theme.inc, line 16
Theme and preprocess functions for Submenutree.

Code

function theme_submenu_tree_titles($variables) {
  $items = $variables['items'];
  $list = array();
  foreach ($items as $item) {
    $list[] = l($item['node']->title, 'node/' . $item['node']->nid);
  }
  return theme('item_list', array(
    'items' => $list,
    'title' => $variables['title'],
  ));
}