diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-31 21:05:21 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-31 21:05:21 -0700 |
commit | 0513713fde119bd50978237506cd6e21df001e61 (patch) | |
tree | 0fdd19b65f7dd2b1833f96af0210b4098742243f /modules/organize/helpers | |
parent | 8312eb116e65195e3fc70d59b3b0817b9c807287 (diff) |
Add 'organize album' to the context menu.
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}"))); + } + } + } |