summaryrefslogtreecommitdiff
path: root/modules/digibug/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-07-10 08:20:00 -0700
committerBharat Mediratta <bharat@menalto.com>2009-07-10 08:20:00 -0700
commit12796ec2ca386895a713583c683348e7d02bc66b (patch)
tree9bf9de19d0de9f4408e61d406f918eb5ebe619d6 /modules/digibug/helpers
parentb3785e176145b10c84b3b27850679b13ab54bc81 (diff)
Create a new [options] submenu under the thumb menu, and move the
Digibug print button into it. Right now, it doesn't display properly.
Diffstat (limited to 'modules/digibug/helpers')
-rw-r--r--modules/digibug/helpers/digibug_menu.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/digibug/helpers/digibug_menu.php b/modules/digibug/helpers/digibug_menu.php
index f1d4fc1d..c95cada2 100644
--- a/modules/digibug/helpers/digibug_menu.php
+++ b/modules/digibug/helpers/digibug_menu.php
@@ -38,12 +38,13 @@ class digibug_menu {
static function thumb($menu, $theme, $item) {
if ($item->type == "photo" && access::can("view_full", $item)) {
- $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->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"));
}
}
}