From b878ed174d9e8628098931156d526b3fc028d905 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 8 Dec 2008 06:14:34 +0000 Subject: Refactor Menu code to create allow you to create menus using a chainable factory interface and retrieve them by ids. Streamlined the HTML creation code a little bit in the process, moved the basic menu functionality into Theme_View and created the option to have different menus other than site_navigation(). --- core/helpers/menus.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 core/helpers/menus.php (limited to 'core/helpers/menus.php') diff --git a/core/helpers/menus.php b/core/helpers/menus.php deleted file mode 100644 index 9076b3bb..00000000 --- a/core/helpers/menus.php +++ /dev/null @@ -1,42 +0,0 @@ -name == "core") { - continue; - } - self::_get_module_menu_items($module->name, $menu, $theme); - } - - return $menu; - } - - private static function _get_module_menu_items($module_name, $menu, $theme) { - $class = "{$module_name}_menu"; - if (method_exists($class, "items")) { - call_user_func_array(array($class, "items"), array(&$menu, $theme)); - } - } -} \ No newline at end of file -- cgit v1.2.3