From 961b4e7a874cea8b0984cd53775f7467ba199b80 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 19 Oct 2009 12:33:32 -0200 Subject: Checking for child terms --- jquery_drawer.info | 3 ++- jquery_drawer.module | 76 +++++++++++++--------------------------------------- 2 files changed, 21 insertions(+), 58 deletions(-) diff --git a/jquery_drawer.info b/jquery_drawer.info index 964b777..9713ed5 100644 --- a/jquery_drawer.info +++ b/jquery_drawer.info @@ -3,4 +3,5 @@ name = jQuery Drawer description = Show menu with jQuery.drawer functionality. core = 6.x version = "6.x-0.1" -dependencies[] = menu taxonomy_node_tree +dependencies[] = menu +dependencies[] = taxonomy_node_tree diff --git a/jquery_drawer.module b/jquery_drawer.module index 4a49162..7dad139 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -121,21 +121,22 @@ function theme_jquery_drawer($menu) { /** * Menu callback. + * + * @TODO: split themeable output from logic. */ function jquery_drawer_page($tid = NULL) { - // First render all nodes whose parent is $term + $output = ''; + $nodes = taxonomy_select_nodes(array($tid)); + $output .= '