You are here

function theme_taxonomy_manager_tree in Taxonomy Manager 6.2

Same name and namespace in other branches
  1. 5 taxonomy_manager.module \theme_taxonomy_manager_tree()
  2. 6 taxonomy_manager.module \theme_taxonomy_manager_tree()
  3. 7 taxonomy_manager.module \theme_taxonomy_manager_tree()

theme function for root element

Parameters

$element:

Return value

html output

File

./taxonomy_manager.module, line 1003
Taxonomy Manager

Code

function theme_taxonomy_manager_tree($element) {
  $tree = theme('taxonomy_manager_tree_elements', $element['#elements']);
  if (!$element['#parent'] && !$element['#siblings_page'] || $element['#render_whole_tree']) {
    $output = '<div id="' . $element['#id'] . '">';
    $output .= $tree;
    $output .= '</div>';
    return theme('form_element', $element, $output);
  }
  return $tree;
}