aboutsummaryrefslogtreecommitdiff
path: root/mod/custom_index/start.php
blob: 16d277a1057620462bea5285fbdf15e29c62e04f (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
<?php

	/**
	 * Elgg custom index page
	 * 
	 * @package ElggIndexCustom
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider <info@elgg.com>
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.com/
	 */

	 
    function indexCustom_init() {
	
        // Extend system CSS with our own styles
				elgg_extend_view('css','custom_index/css');
				
       // Replace the default index page
			register_plugin_hook('index','system','custom_index');
			
				
    }
    
    function custom_index() {
			
			if (!include_once(dirname(__FILE__) . "/index.php")) return false;
			return true;
			
		}


    // Make sure the
		    register_elgg_event_handler('init','system','indexCustom_init');

?>