Hierarchical taxonomy

Categories

Component ID

1889016

Component name

Hierarchical taxonomy

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2239

Component created

Component changed

Component body

The taxonomy_get_tree() function is useful, but returns a flat structure. If the vocabulary contains a hierarchical taxonomy, modules will often want the data returned as a hierarchical structure.

Enter hierarchical_taxonomy module. It simply provides one API function: hierarchical_taxonomy_get_tree(). It uses the same parameters as taxonomy_get_tree(), but returns a hierarchical structure (where $term->below is an array containing the child terms).

This is an API module, and does not provide any UI. Use it to simplify your module development, or if another module requires it.