diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-08-31 21:53:17 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-08-31 21:53:17 -0700 |
commit | 5ca13fe5e83ec7d6dcc1f5d2ac19a3f4ebfc782c (patch) | |
tree | 97af25c2c15606e371d690459c7c0eb9d222b7bf /modules/organize/helpers | |
parent | 2bc73e2e36fefc3c1ee1b8e97e686c6729e58dcb (diff) | |
parent | e648ea4dbdb423e80d79ba9e4c9f3ebde6ed22a0 (diff) |
Merge commit 'upstream/master'
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}"))); + } + } + } |