aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/admin.php
blob: 5e33580784de0ca1c584c2c13fb4610c9e072738 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
	/**
	 * Elgg admin functions.
	 * Functions for adding and manipulating options on the admin panel.
	 * 
	 * @package Elgg
	 * @subpackage Core
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Marcus Povey 
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.org/
	 */

	
	/**
	 * Register an admin page with the admin panel.
	 * 
	 * @param string $view The view associated with the page, this is assumed to be under the view /admin/. 
	 * @param int $priority Optional priority to govern the appearance in the list.
	 */
	function register_elgg_admin_page($view, $priority = 500)
	{
		
	}
	
	
	/**
	 * Return an array of registered elgg admin pages.
	 *
	 * @return array
	 */
	function get_elgg_admin_pages()
	{
		
	}


	function admin_init()
	{
		global $CONFIG;
		
		// TODO: Register default pages
	}

	
	/// Register init function
	register_elgg_event_handler('init','system','admin_init');
?>