From c2930b6bafa23278a91fbe217f324ad4bcf98e31 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 1 Aug 2008 13:01:18 +0000 Subject: Introducing the new pagesetup event. git-svn-id: https://code.elgg.org/elgg/trunk@1652 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engine/lib') 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, -- cgit v1.2.3