summaryrefslogtreecommitdiff
path: root/core/helpers/core_menu.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-11 21:27:16 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-11 21:27:16 +0000
commitbd992a97b217fe2c33bd7cb6df0f61adc7d64ebc (patch)
tree150817cec2f40b41ccc3cf8c8a38cfb1d528cbed /core/helpers/core_menu.php
parentbf10544e27a8c942e6907d059586119b80112337 (diff)
Remove the options menus from the albums and photo pages and move to the site menu
Diffstat (limited to 'core/helpers/core_menu.php')
-rw-r--r--core/helpers/core_menu.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/helpers/core_menu.php b/core/helpers/core_menu.php
index 3f0c5024..e4a3dd92 100644
--- a/core/helpers/core_menu.php
+++ b/core/helpers/core_menu.php
@@ -37,13 +37,18 @@ class core_menu_Core {
// @todo need to do a permission check here
$menu->append(
Menu::factory("submenu")
- ->id("upload_menu")
- ->label(_("Upload"))
+ ->id("options_menu")
+ ->label(_("Options"))
->append(
Menu::factory("dialog")
- ->id("add_photos")
- ->label(_("Add Photos"))
- ->url(url::site("form/add/photos/$item->id"))));
+ ->id("add_item")
+ ->label(_("Add an item"))
+ ->url(url::site("form/add/photos/$item->id")))
+ ->append(
+ Menu::factory("dialog")
+ ->id("add_album")
+ ->label(_("Add album"))
+ ->url(url::site("form/add/albums/$item->id"))));
$admin_menu = Menu::factory("submenu")
->id("admin_menu")