* Remove the @todo in module event and always try to call gallery_event::$function first

* Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php
* Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
This commit is contained in:
Tim Almdal
2009-09-29 08:50:53 -07:00
parent dd5471b860
commit 89a67dba63
5 changed files with 264 additions and 250 deletions

View File

@@ -46,7 +46,6 @@ class Admin_View_Core extends Gallery_View {
public function admin_menu() {
$menu = Menu::factory("root");
gallery::admin_menu($menu, $this);
module::event("admin_menu", $menu, $this);
$menu->compact();
return $menu;