diff options
author | Silvio <silvio@socioambiental.org> | 2009-12-14 11:28:43 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-10-14 18:23:24 -0300 |
commit | 1704941f50a3d85255114e5a54331059850f6a86 (patch) | |
tree | 862427861283b20d4bb0390ef784ce380842fd7c /jquery_drawer.module | |
parent | 375b0912ff22333eaa3daae829f2012b08bfb3d1 (diff) | |
download | jquery_drawer-1704941f50a3d85255114e5a54331059850f6a86.tar.gz jquery_drawer-1704941f50a3d85255114e5a54331059850f6a86.tar.bz2 |
Coding standards, adding license
Diffstat (limited to 'jquery_drawer.module')
-rw-r--r-- | jquery_drawer.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module index 336c497..eb166be 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -147,17 +147,17 @@ function jquery_drawer_page($tid = NULL) { $output .= theme('jquery_drawer_link', $link); } - // Check for child terms + // Check for child terms $vid = variable_get('jquery_drawer', '1'); $terms = taxonomy_node_tree_taxonomy_get_tree($vid, $tid); - foreach ($terms as $term) { + foreach ($terms as $term) { $filter[] = $term->tid; } if (isset($filter) && !empty($filter)) { // Then render all nodes whose terms are children of $term - $query = 'SELECT node.nid, node.title, term_node.tid FROM {node} LEFT JOIN + $query = 'SELECT node.nid, node.title, term_node.tid FROM {node} LEFT JOIN {term_node} ON term_node.nid = node.nid WHERE term_node.tid IN (%s) AND node.status = "1"'; @@ -165,7 +165,7 @@ function jquery_drawer_page($tid = NULL) { $tree = taxonomy_node_tree_build($nodes, $terms); // format output - if (is_array($tree) && $tree != NULL) { + if (is_array($tree) && $tree != NULL) { foreach ($tree as $term) { $output .= taxonomy_node_tree_list($term, 'jquery_drawer', 'hidden', 'node'); } |