You are here

function theme_taxonomy_manager_tree in Taxonomy Manager 5

Same name and namespace in other branches
  1. 6.2 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 2039
Taxonomy Manager

Code

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