diff options
-rw-r--r-- | jquery_drawer.module | 9 |
1 files 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 .= '<ul id="drw_item" class="hidden">'; @@ -164,6 +164,7 @@ function jquery_drawer_page($tid = NULL) { * Recursively build the menu. * * @ingroup themeable + * @TODO: integrate with taxonomy_node_tree */ function jquery_drawer_menu_build($term) { |