Permalink
Browse files

feature(discussions): added a site menu item for discussion/all

fixes #8668
  • Loading branch information...
jdalsem committed Mar 22, 2016
1 parent b96c736 commit 79809b785b5ee5defa2184c7debd24d580e0e234
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/discussions/start.php
@@ -12,6 +12,11 @@ function discussion_init() {
elgg_register_library('elgg:discussion', __DIR__ . '/lib/discussion.php');
elgg_register_menu_item('site', [
'name' => 'discussion',
'text' => elgg_echo('discussion'),
'href' => 'discussion/all',
]);
elgg_register_page_handler('discussion', 'discussion_page_handler');
elgg_register_plugin_hook_handler('entity:url', 'object', 'discussion_set_topic_url');

0 comments on commit 79809b7

Please sign in to comment.