aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--taxonomy_node_tree.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/taxonomy_node_tree.module b/taxonomy_node_tree.module
index ba2989e..8f6b670 100644
--- a/taxonomy_node_tree.module
+++ b/taxonomy_node_tree.module
@@ -367,6 +367,7 @@ function taxonomy_node_tree_theme() {
'class' => NULL,
'baselink' => NULL,
'level' => NULL,
+ 'active_link' => NULL,
),
'function' => 'theme_taxonomy_node_tree_list',
),
@@ -396,7 +397,7 @@ function taxonomy_node_tree_theme() {
* @return
* Rendered HTML tree.
*/
-function theme_taxonomy_node_tree_list($term, $id, $class, $baselink = NULL, &$level = NULL) {
+function theme_taxonomy_node_tree_list($term, $id, $class, $baselink = NULL, &$level = NULL, $active_link = NULL) {
if ($level == NULL) {
$level = 0;
@@ -411,7 +412,7 @@ function theme_taxonomy_node_tree_list($term, $id, $class, $baselink = NULL, &$l
$output .= $term->name;
$output .= '<ul id="' . $id .'-ul-'. $level .'" class="'. $class .'">';
foreach ($term->below as $child) {
- $output .= theme_taxonomy_node_tree_list($child, $id, $class, $baselink, $level);
+ $output .= theme_taxonomy_node_tree_list($child, $id, $class, $baselink, $level, $active_link);
}
$output .= '</ul>';
}