aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/start.php
blob: 4236ce64e113a5dae9fac6444510894400bb7c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * Elgg log browser.
 * 
 * @package ElggLogBrowser
 */

elgg_register_event_handler('init', 'system', 'logbrowser_init');

/**
 * Initialize the log browser plugin.
 */
function logbrowser_init() {
	
	// Extend CSS
	elgg_extend_view('css/admin', 'logbrowser/css');
	
	// Extend context menu with admin logbrowser link
	if (isadminloggedin()) {
		elgg_extend_view('profile/menu/adminlinks', 'logbrowser/adminlinks', 10000);
	}
	
	elgg_add_admin_submenu_item('logbrowser', elgg_echo('logbrowser'), 'overview');
}