You are here

function theme_taxonomy_manager_tree in Taxonomy Manager 7

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

theme function for root element

Parameters

$element:

Return value

html output

1 theme call to theme_taxonomy_manager_tree()
taxonomy_manager_element_info in ./taxonomy_manager.module
Implements hook_elements().

File

./taxonomy_manager.module, line 1004
Taxonomy Manager

Code

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