Limit Depth?
zzemm - June 15, 2009 - 03:10
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Wim Leers |
| Status: | closed |
Jump to:
Description
Thanks for the great module.
Could you check if I am wrong or not^
I need that HS will load on 3 from 5 sublevels. In this case- my hooks looks like
function my_load_to_options($vid) {
$tree = taxonomy_get_tree($vid,0,-1,3);
return $tree;
...........................
'#options' => my_load_to_options($vid),
...........................
}but nothing changed... and HS still loading full tree...
any help apreciated....

#1
Ehm … #options is not used by HS. So clearly that won't have the effect you're looking for.
The hs_content_taxonomy implementation supports limiting the depth. But that is not yet ready for D6: #342992: Port HS support for Content Taxonomy to Drupal 6. I'll accept patches or sponsorship to support this in hs_taxonomy as well.
#2
Closing due to lack of response.