aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2014-03-26 16:23:07 -0300
committerSilvio <silvio@socioambiental.org>2014-03-26 16:23:07 -0300
commitc9d54bde90e679699d8044ad8547cf3810597532 (patch)
tree01c6d851ac6b44ca74dd0eaeadec1ec13db96dda
parentc8be7bc85f92e321abbe77882699d972f133db90 (diff)
downloadjquery_drawer-c9d54bde90e679699d8044ad8547cf3810597532.tar.gz
jquery_drawer-c9d54bde90e679699d8044ad8547cf3810597532.tar.bz2
Using theme taxonomy_node_tree_list
-rw-r--r--jquery_drawer.module8
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 {