From 7f98f5dca52386fec9c129071bb46591acb46da1 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 19 Nov 2013 15:53:48 -0200 Subject: Split themeable output from logic --- jquery_drawer.module | 66 ++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/jquery_drawer.module b/jquery_drawer.module index a54679d..7283fcd 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -144,26 +144,9 @@ function theme_jquery_drawer($menu) { } /** - * Menu callback. - * - * @todo Split themeable output from logic. + * Render all nodes whose terms are children of $tid. */ -function jquery_drawer_page($tid = NULL) { - $output = ''; - $nodes = taxonomy_select_nodes(array($tid)); - $base = variable_get('jquery_drawer_link', 'node'); - $output .= '