aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-20 22:15:58 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-20 22:15:58 +0000
commit23b38301a25d603ba66d74e9a791af5eb3685cc2 (patch)
treee8bb37458a295c270e2dbf3765437af5c564bd44 /mod/file
parentff1d229781304112d3376fedabb98e3dbfb0c0ab (diff)
downloadelgg-23b38301a25d603ba66d74e9a791af5eb3685cc2.tar.gz
elgg-23b38301a25d603ba66d74e9a791af5eb3685cc2.tar.bz2
Adding submenu items for standard plugins to owner block.
git-svn-id: http://code.elgg.org/elgg/trunk@6122 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/start.php7
1 files changed, 7 insertions, 0 deletions
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}",
+ ));
+ }
}
/**