function hs_content_taxonomy_hierarchical_select_root_level in Hierarchical Select 6.3
Same name and namespace in other branches
- 5.3 modules/hs_content_taxonomy.module \hs_content_taxonomy_hierarchical_select_root_level()
Implementation of hook_hierarchical_select_root_level().
File
- modules/
hs_content_taxonomy.module, line 373 - Implementation of the Hierarchical Select API for the Content Taxonomy module.
Code
function hs_content_taxonomy_hierarchical_select_root_level($params) {
$tid = $params['tid'];
$terms = _hs_taxonomy_hierarchical_select_get_tree($params['vid'], $tid, -1, 1);
return _hs_taxonomy_hierarchical_select_terms_to_options($terms);
}