aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logbrowser/start.php')
-rw-r--r--mod/logbrowser/start.php26
1 files changed, 2 insertions, 24 deletions
diff --git a/mod/logbrowser/start.php b/mod/logbrowser/start.php
index c8c830f00..378bab8f7 100644
--- a/mod/logbrowser/start.php
+++ b/mod/logbrowser/start.php
@@ -11,13 +11,9 @@
* Initialise the log browser and set up the menus.
*
*/
-function logbrowser_init()
-{
+function logbrowser_init() {
global $CONFIG;
- // Register a page handler, so we can have nice URLs
- register_page_handler('logbrowser','logbrowser_page_handler');
-
// Extend CSS
elgg_extend_view('css','logbrowser/css');
@@ -26,26 +22,8 @@ function logbrowser_init()
elgg_extend_view('profile/menu/adminlinks','logbrowser/adminlinks',10000);
}
- elgg_add_submenu_item(array(
- 'text' => elgg_echo('logbrowser'),
- 'href' => "{$CONFIG->wwwroot}pg/logbrowser",
- 'parent_id' => 'overview',
- ), 'admin', 'default');
+ elgg_add_admin_submenu_item('logbrowser', elgg_echo('logbrowser'), 'overview');
}
-/**
- * Log browser page handler
- *
- * @param array $page Array of page elements, forwarded by the page handling mechanism
- */
-function logbrowser_page_handler($page)
-{
- global $CONFIG;
-
- // only interested in one page for now
- include($CONFIG->pluginspath . "logbrowser/index.php");
-}
-
-
// Initialise log browser
register_elgg_event_handler('init','system','logbrowser_init');