summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-09-16 20:34:42 -0700
committerBharat Mediratta <bharat@menalto.com>2009-09-16 20:34:42 -0700
commit4e1e24ba1a976cd0bb7ca7dd03c6001f906a25dd (patch)
treeb3591aff6a4cb41d58f7d3de62e194c737e6fdcd /modules/gallery/libraries/Theme_View.php
parentffccfb9e634de527261dca8e46ac4053806ec87b (diff)
Add a movie_menu() theme callback, and have the default theme call it
in the sidebar on movie page types.
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 541bce88..130e2dce 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -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")