diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-31 22:56:11 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-31 22:56:11 -0600 |
| commit | 7b2c03c2b9d61ce945199505d8c2f273a84725b9 (patch) | |
| tree | 9af33753e5f9832f3640f475268b31b92f3c6862 /modules/organize/helpers | |
| parent | 559f9a4b9d770a37048db73e82f84bc1f0ec09f1 (diff) | |
| parent | 5ca13fe5e83ec7d6dcc1f5d2ac19a3f4ebfc782c (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/organize/helpers')
| -rw-r--r-- | modules/organize/helpers/organize_event.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/organize/helpers/organize_event.php b/modules/organize/helpers/organize_event.php index 7d6b3e24..79077db3 100644 --- a/modules/organize/helpers/organize_event.php +++ b/modules/organize/helpers/organize_event.php @@ -21,7 +21,7 @@ class organize_event_Core { static function site_menu($menu, $theme) { $item = $theme->item(); - if ($item && access::can("edit", $item) && $item->is_album()) { + if ($item && $item->is_album() && access::can("edit", $item)) { $menu->get("options_menu") ->append(Menu::factory("dialog") ->id("organize") @@ -30,4 +30,16 @@ class organize_event_Core { ->url(url::site("organize/dialog/{$item->id}"))); } } + + static function context_menu($menu, $theme, $item) { + if ($item->is_album() && access::can("edit", $item)) { + $menu->get("options_menu") + ->append(Menu::factory("dialog") + ->id("organize") + ->label(t("Organize album")) + ->css_id("gOrganizeLink") + ->url(url::site("organize/dialog/{$item->id}"))); + } + } + } |
