You are here

function taxonomy_hierarchical_select_root_level in Hierarchical Select 5

Same name and namespace in other branches
  1. 5.2 modules/taxonomy.inc \taxonomy_hierarchical_select_root_level()

Implementation of hook_hierarchical_select_root_level().

File

modules/taxonomy.inc, line 126

Code

function taxonomy_hierarchical_select_root_level($params) {
  $terms = taxonomy_get_tree($params['vid'], 0, -1, 1);
  return _taxonomy_hierarchical_select_terms_to_options($terms);
}