diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-20 22:15:58 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-20 22:15:58 +0000 |
commit | 23b38301a25d603ba66d74e9a791af5eb3685cc2 (patch) | |
tree | e8bb37458a295c270e2dbf3765437af5c564bd44 /mod/blog/start.php | |
parent | ff1d229781304112d3376fedabb98e3dbfb0c0ab (diff) | |
download | elgg-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/blog/start.php')
-rw-r--r-- | mod/blog/start.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php index b5efa96d8..20f51937f 100644 --- a/mod/blog/start.php +++ b/mod/blog/start.php @@ -193,6 +193,13 @@ function blog_page_setup() { add_submenu_item(elgg_echo('blog:groups:group_blogs'), $url); } } + + if ($page_owner instanceof ElggEntity) { + elgg_add_submenu_item(array( + 'text' => elgg_echo('blog'), + 'href' => "{$CONFIG->url}pg/blog/{$page_owner->username}/read", + )); + } } /** @@ -209,5 +216,4 @@ function blog_ecml_views_hook($hook, $entity_type, $return_value, $params) { return $return_value; } - register_elgg_event_handler('init', 'system', 'blog_init'); |