From 19de80d81bca70f684be426dcfb5e9f363c9223e Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 15 Oct 2009 18:08:48 -0300 Subject: Code cleanup --- jquery_drawer.module | 108 +-------------------------------------------------- 1 file changed, 1 insertion(+), 107 deletions(-) diff --git a/jquery_drawer.module b/jquery_drawer.module index adaa7bc..276c162 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -95,7 +95,7 @@ function jquery_drawer_theme() { /** * Drawer logic. */ -function theme_jquery_drawer($menu_name, $mlid) { +function theme_jquery_drawer() { // Get all terms from a given vocabulary $vocabulary = variable_get('jquery_drawer', '1'); $terms = jquery_drawer_taxonomy_get_tree($vocabulary); @@ -256,112 +256,6 @@ function jquery_drawer_menu_build($term) { } -/** - * Build the Drawer. - * - * @TODO - * @ingroup themeable - */ -/*function jquery_drawer_show_items($term) { - - $tree = array(); - $terms = jquery_drawer_taxonomy_get_tree(JQUERY_DRAWER_VOC_ID); - $query = 'SELECT node.nid, node.title, term_node.tid FROM {node} LEFT JOIN - {term_node} ON term_node.nid = node.nid WHERE node.type = "story" - AND term_node.tid = "%d" AND node.status = "1")'; - $result = db_query(db_rewrite_sql($query), $term); - - while ($node = db_fetch_object($result)) { - foreach ($terms as $term) { - // add nodes into the term - if ($node->tid == $term->tid) { - $term->nodes[] = $node; - } - // update an index of terms - $tree[$term->tid] = $term; - } - } - - // add children relationship - foreach ($tree as $term) { - if ($term->parents[0] != 0) { - $tree[$term->parents[0]]->children[] = $term->tid; - } - } - - // build menu with hierarchy - foreach ($tree as $term) { - jquery_drawer_build_tree($tree, $term); - } - - // format output - $output = '
  • '. t('About') .'
  • '; - $output .= '
  • '. t('Location'); - $output .= '
  • '; - - return $output; -} - -/** - * Recursively build the menu. - * - * @ingroup themeable - */ -/*function jquery_drawer_show_items($menu) { - - global $_jquery_drawer_id; - - if ($_jquery_drawer_id == NULL) { - $output = '