From ac3d9e1062ebdd1addd7e68ed45674832709ce38 Mon Sep 17 00:00:00 2001 From: Silvio Date: Sat, 3 Oct 2009 16:34:28 -0300 Subject: Almost working version with new isparent() function --- finder_menu.module | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'finder_menu.module') diff --git a/finder_menu.module b/finder_menu.module index 6b757b3..6857987 100644 --- a/finder_menu.module +++ b/finder_menu.module @@ -110,7 +110,7 @@ function theme_finder_menu($menu_name, $mlid) { // Build the menus $output = '
'; - $output .= finder_menu_build($menu, TRUE); + $output .= finder_menu_build($menu, "finder"); $output .= '
'; drupal_add_js(drupal_get_path('module', 'finder_menu') .'/finder_menu.js'); @@ -122,12 +122,14 @@ function theme_finder_menu($menu_name, $mlid) { * * @ingroup themeable */ -function finder_menu_build($menu, $first = FALSE) { +function finder_menu_build($menu, $id = null) { - if ($first === TRUE) { + if ($id == "finder") { $output = '