summaryrefslogtreecommitdiff
path: root/modules/organize
diff options
context:
space:
mode:
Diffstat (limited to 'modules/organize')
-rw-r--r--modules/organize/helpers/organize_event.php14
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}")));
+ }
+ }
+
}