From 1ca668c4937be08c43bd0ab2d9270c5c4ac68130 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 29 Sep 2009 16:49:36 -0300 Subject: Initial working version --- finder_menu.module | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'finder_menu.module') diff --git a/finder_menu.module b/finder_menu.module index 02b1edb..91a749d 100644 --- a/finder_menu.module +++ b/finder_menu.module @@ -1,6 +1,14 @@ '; - $output = finder_menu_build($menu); - $output .= ''; + $output = '
'; + $output .= finder_menu_build($menu, TRUE); + $output .= '
'; drupal_add_js(drupal_get_path('module', 'finder_menu') .'/finder_menu.js'); return $output; @@ -115,17 +123,25 @@ function theme_finder_menu($menu_name, $mlid) { * * @ingroup themeable */ -function finder_menu_build($menu) { +function finder_menu_build($menu, $first = FALSE) { - $output = '