From 3c86ad79c908e0cac0281f4a431eb7ba3a13ea81 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 19 Oct 2009 11:01:40 -0200 Subject: Adding taxonomy render functions New functions taxonomy_node_tree_list() and taxonomy_node_tree_has_unhidden_submenu() --- taxonomy_node_tree.module | 57 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module index 22ed479..acbc1d0 100644 --- a/taxonomy_node_tree.module +++ b/taxonomy_node_tree.module @@ -19,7 +19,7 @@ * Taxonomy id. * * @return - * Array with parent terms of the vocabulary + * Array with parent terms of the vocabulary. */ function taxonomy_node_tree_parents($vid) { // Get all terms from a given vocabulary @@ -213,3 +213,58 @@ function taxonomy_node_tree_taxonomy_get_tree($vid, $parent = 0, $depth = -1, $m return $tree; } + + +/** + * Recursively build the menu. + * + * @ingroup themeable + */ +function taxonomy_node_tree_list($menu, $id, $class, &$level = NULL) { + + if ($level == NULL) { + $output = '