From 61566a3689a08460031d28925b7285b4a909a0ef Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 28 Jul 2012 23:35:01 +0200 Subject: Moved 'sort' link to title menu. --- start.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'start.php') diff --git a/start.php b/start.php index 1e851b8f3..363b9ae97 100644 --- a/start.php +++ b/start.php @@ -343,7 +343,7 @@ function tidypics_entity_menu_setup($hook, $type, $return, $params) { } } - // only show these options if there are images + // only show slideshow link if there are images if (elgg_instanceof($entity, 'object', 'album') && $entity->getSize() > 0) { $url = $entity->getURL() . '?limit=50&view=rss'; $url = elgg_format_url($url); @@ -355,16 +355,6 @@ function tidypics_entity_menu_setup($hook, $type, $return, $params) { 'priority' => 80, ); $return[] = ElggMenuItem::factory($options); - - if ($entity->canEdit()) { - $options = array( - 'name' => 'sort', - 'text' => elgg_echo('album:sort'), - 'href' => "photos/sort/" . $entity->getGUID(), - 'priority' => 90, - ); - $return[] = ElggMenuItem::factory($options); - } } return $return; -- cgit v1.2.3