aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/start.php
blob: 7a510b6e619254365638889d2e5e61c7814b3195 (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
25
<?php
/**
 * Elgg log browser.
 * 
 * @package ElggLogBrowser
 */

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

/**
 * Initialize the log browser plugin.
 */
function logbrowser_init() {
	global $CONFIG;
	
	// 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');
}