diff options
-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 70c3d21..169a74b 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -59,7 +59,7 @@ function jquery_drawer_block($op = 'list', $delta = 0, $edit = array()) { '#title' => t('Base link path (useful for views).'), '#description' => t('Set the base link for nodes listed in drawer.'), '#default_value' => variable_get('jquery_drawer_link', 'node'), - ); + ); return $form; case 'save': @@ -163,7 +163,7 @@ function jquery_drawer_theme() { function theme_jquery_drawer($menu) { $output = '<ul id="drw_tabs">'; $output .= implode((array) module_invoke_all('jquery_drawer')); - + if (module_exists('i18n')) { $menu = i18ntaxonomy_localize_terms($menu); } @@ -210,7 +210,7 @@ function jquery_drawer_get_children($tid = NULL) { $query = 'SELECT DISTINCT n.nid, n.title, term_node.tid FROM {node} n LEFT JOIN {term_node} ON term_node.nid = n.nid WHERE term_node.tid IN (%s) AND n.status = "1" ORDER BY term_node.weight_in_tid ASC'; - + //$query = db_rewrite_sql($query); $nodes = db_query(db_rewrite_sql($query), implode(',', $filter)); $tree = taxonomy_node_tree_build($nodes, $terms); @@ -246,7 +246,7 @@ function jquery_drawer_page($tid = NULL) { // Add other nodes if (is_array($tree) && !empty($tree)) { foreach ($tree as $term) { - $output .= taxonomy_node_tree_list($term, 'jquery_drawer', 'hidden', $base); + $output .= theme('taxonomy_node_tree_list', $term, 'jquery_drawer', 'hidden', $base); } } else { |