From 23b38301a25d603ba66d74e9a791af5eb3685cc2 Mon Sep 17 00:00:00 2001 From: nickw Date: Thu, 20 May 2010 22:15:58 +0000 Subject: Adding submenu items for standard plugins to owner block. git-svn-id: http://code.elgg.org/elgg/trunk@6122 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/start.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mod/file/start.php') diff --git a/mod/file/start.php b/mod/file/start.php index b8a26fab5..a257a90ac 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -79,6 +79,13 @@ add_submenu_item(sprintf(elgg_echo("file:group"),$page_owner->name), $CONFIG->wwwroot . "pg/file/" . $page_owner->username); } } + + if ($page_owner instanceof ElggEntity) { + elgg_add_submenu_item(array( + 'text' => elgg_echo('file'), + 'href' => "{$CONFIG->url}pg/file/{$page_owner->username}", + )); + } } /** -- cgit v1.2.3