From 981c8c1b8a1c1a86115285a90d161f5277fa54ca Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 16 Oct 2009 12:11:05 -0300 Subject: Minor changes Adding TODO --- jquery_drawer.module | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jquery_drawer.module b/jquery_drawer.module index d03b4b8..6def927 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -132,8 +132,8 @@ function jquery_drawer_page($tid = NULL) { // Then render all nodes whose terms are children of $term - $vocabulary = variable_get('jquery_drawer', '1'); - $terms = taxonomy_node_tree_taxonomy_get_tree($vocabulary, $tid); + $vid = variable_get('jquery_drawer', '1'); + $terms = taxonomy_node_tree_taxonomy_get_tree($vid, $tid); foreach ($terms as $term) { $filter[] = $term->tid; @@ -143,8 +143,8 @@ function jquery_drawer_page($tid = NULL) { {term_node} ON term_node.nid = node.nid WHERE term_node.tid IN (%s) AND node.status = "1"'; - $result = db_query(db_rewrite_sql($query), implode(',', $filter)); - $tree = taxonomy_node_tree_build($result, $terms); + $nodes = db_query(db_rewrite_sql($query), implode(',', $filter)); + $tree = taxonomy_node_tree_build($nodes, $terms); // format output $output .= '