summaryrefslogtreecommitdiff
path: root/modules/digibug/helpers/digibug_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-09 12:14:17 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-09 12:14:17 -0700
commit1c4e1344c6899f1abbfd914d36e7686afec2e5cc (patch)
tree27724fe403c575201ef6ab79a36499ce04312d9d /modules/digibug/helpers/digibug_event.php
parent6404e75a0b5125aa2d8481294325bb199a4e3287 (diff)
Update photo_menu() and context_menu() to work with recent menu changes.
Diffstat (limited to 'modules/digibug/helpers/digibug_event.php')
-rw-r--r--modules/digibug/helpers/digibug_event.php22
1 files changed, 10 insertions, 12 deletions
diff --git a/modules/digibug/helpers/digibug_event.php b/modules/digibug/helpers/digibug_event.php
index 93bc1747..c75eed49 100644
--- a/modules/digibug/helpers/digibug_event.php
+++ b/modules/digibug/helpers/digibug_event.php
@@ -28,23 +28,21 @@ class digibug_event_Core {
static function photo_menu($menu, $theme) {
$item = $theme->item();
- $menu->get("options_menu")
- ->append(Menu::factory("link")
- ->id("digibug")
- ->label(t("Print with Digibug"))
- ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf"))
- ->css_id("gDigibugLink"));
+ $menu->append(Menu::factory("link")
+ ->id("digibug")
+ ->label(t("Print with Digibug"))
+ ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf"))
+ ->css_id("gDigibugLink"));
}
static function context_menu($menu, $theme, $item) {
$item = $theme->item();
if ($item->type == "photo") {
- $menu->get("options_menu")
- ->append(Menu::factory("link")
- ->id("digibug")
- ->label(t("Print with Digibug"))
- ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf"))
- ->css_id("gDigibugLink"));
+ $menu->append(Menu::factory("link")
+ ->id("digibug")
+ ->label(t("Print with Digibug"))
+ ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf"))
+ ->css_id("gDigibugLink"));
}
}
}