Add a movie_menu() theme callback, and have the default theme call it

in the sidebar on movie page types.
This commit is contained in:
Bharat Mediratta
2009-09-16 20:34:42 -07:00
parent ffccfb9e63
commit 4e1e24ba1a
2 changed files with 8 additions and 0 deletions

View File

@@ -111,6 +111,12 @@ class Theme_View_Core extends Gallery_View {
return $menu->compact();
}
public function movie_menu() {
$menu = Menu::factory("root");
module::event("movie_menu", $menu, $this);
return $menu->compact();
}
public function context_menu($item, $thumbnail_css_selector) {
$menu = Menu::factory("root")
->append(Menu::factory("submenu")