diff options
| author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-01 13:01:18 +0000 | 
|---|---|---|
| committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-01 13:01:18 +0000 | 
| commit | c2930b6bafa23278a91fbe217f324ad4bcf98e31 (patch) | |
| tree | b2246207e954a65225fbfe19f90c7a165db56da6 /engine/lib | |
| parent | 526fa5590b98a4bfd5c786f7b7c7923423ea1338 (diff) | |
| download | elgg-c2930b6bafa23278a91fbe217f324ad4bcf98e31.tar.gz elgg-c2930b6bafa23278a91fbe217f324ad4bcf98e31.tar.bz2  | |
Introducing the new pagesetup event.
git-svn-id: https://code.elgg.org/elgg/trunk@1652 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
| -rw-r--r-- | engine/lib/elgglib.php | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index d591ca00b..8fc1b3da9 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -159,6 +159,12 @@  		    global $CONFIG;
  		    static $usercache;
 +		// Trigger the pagesetup event
 +			if (!isset($CONFIG->pagesetupdone)) {
 +				trigger_elgg_event('pagesetup','system');
 +				$CONFIG->pagesetupdone = true;
 +			}
 +		    
  		    if (!is_array($usercache)) {
  		        $usercache = array();
  		    }
 @@ -770,6 +776,7 @@  	 */
  		function page_draw($title, $body, $sidebar = "") {
 +			// Draw the page
  			echo elgg_view('pageshells/pageshell', array(
  												'title' => $title,
  												'body' => $body,
  | 
