aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/start.php
blob: 378bab8f7f84cffade830e3b738abf7877ee3ddc (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
26
27
28
29
<?php
/**
 * Elgg log browser.
 * 
 * @package ElggLogBrowser
 * @author Curverider Ltd
 * @link http://elgg.com/
 */

/**
 * Initialise the log browser and set up the menus.
 *
 */
function logbrowser_init() {
	global $CONFIG;
	
	// Extend CSS
	elgg_extend_view('css','logbrowser/css');
	
	// Extend context menu with admin logbrowsre link
	if (isadminloggedin()) {
		elgg_extend_view('profile/menu/adminlinks','logbrowser/adminlinks',10000);
	}
	
	elgg_add_admin_submenu_item('logbrowser', elgg_echo('logbrowser'), 'overview');
}

// Initialise log browser
register_elgg_event_handler('init','system','logbrowser_init');