aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/start.php8
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');