From d8cbc20a792ed8b04d7257186e571e926a5280ac Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 1 Mar 2011 06:29:24 -0500 Subject: [PATCH] method to show submenus --- lib/menu.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/menu.php b/lib/menu.php index b9791d2359..7947b4d7e4 100644 --- a/lib/menu.php +++ b/lib/menu.php @@ -81,4 +81,12 @@ class Menu extends Widget { return sprintf('nav_%s', $actionName); } + + function submenu($label, $menu) + { + $this->action->elementStart('li'); + $this->action->text($label); + $menu->show(); + $this->action->elementEnd('li'); + } }