diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-28 03:01:00 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-28 03:01:00 +0000 |
commit | 09619e09ed4544a0529231bfc8dd81ec719f2810 (patch) | |
tree | 3e74b71b9682174770518f3e9b6781911d05b2e5 /viewalbum.php | |
parent | 8275ddfe8ebe821f1062f280696d475940461ba9 (diff) | |
download | elgg-09619e09ed4544a0529231bfc8dd81ec719f2810.tar.gz elgg-09619e09ed4544a0529231bfc8dd81ec719f2810.tar.bz2 |
moved edit and delete to page handler - need to update links
Diffstat (limited to 'viewalbum.php')
-rw-r--r-- | viewalbum.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/viewalbum.php b/viewalbum.php index 092ad76a8..d80a3d8e6 100644 --- a/viewalbum.php +++ b/viewalbum.php @@ -21,6 +21,23 @@ $owner = page_owner_entity();
+ // setup group menu
+ if ($owner instanceof ElggGroup) {
+ add_submenu_item( elgg_echo('album:create'),
+ $CONFIG->wwwroot . 'pg/photos/new/' . $owner->username,
+ 'tidypics');
+ add_submenu_item( elgg_echo('album:addpix'),
+ $CONFIG->wwwroot . 'pg/photos/upload/' . $album_guid,
+ 'tidypics');
+ add_submenu_item( elgg_echo('album:edit'),
+ $CONFIG->wwwroot . 'pg/photos/edit/' . $album_guid,
+ 'tidypics');
+ add_submenu_item( elgg_echo('album:delete'),
+ $CONFIG->wwwroot . 'pg/photos/delete/' . $album_guid,
+ 'tidypics',
+ true);
+ }
+
// set title and body
$title = $album->title;
$area2 = elgg_view_title($title);
|