diff options
author | Silvio <silvio@socioambiental.org> | 2014-03-26 16:36:05 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2014-03-26 16:36:05 -0300 |
commit | 6f887c541557f404fa55b4e1e1e50483bc46b6ef (patch) | |
tree | 79d9ced9fd185da06cc6f8fbf4739419b4fd8081 | |
parent | 06823f76fe2e91139f371a3d94dc34d92017712e (diff) | |
download | taxonomy_node_tree-6f887c541557f404fa55b4e1e1e50483bc46b6ef.tar.gz taxonomy_node_tree-6f887c541557f404fa55b4e1e1e50483bc46b6ef.tar.bz2 |
Fix active_link parameter
-rw-r--r-- | taxonomy_node_tree.module | 5 |
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>'; } |