diff options
author | Silvio <silvio@socioambiental.org> | 2009-10-16 12:11:05 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-10-14 18:23:22 -0300 |
commit | 981c8c1b8a1c1a86115285a90d161f5277fa54ca (patch) | |
tree | 336b6c47a293265b02fc2dedcebebe4952047587 | |
parent | bd01eb22beb0996c2da7df622afe48279a22a82c (diff) | |
download | jquery_drawer-981c8c1b8a1c1a86115285a90d161f5277fa54ca.tar.gz jquery_drawer-981c8c1b8a1c1a86115285a90d161f5277fa54ca.tar.bz2 |
Minor changes
Adding TODO
-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) { |