From 688a1e02a89e25caba37c91be7ac56d7bdc6dc4a Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 4 Jul 2008 14:21:12 +0000 Subject: Refs #109 : Widget support git-svn-id: https://code.elgg.org/elgg/trunk@1293 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'mod/groups/start.php') diff --git a/mod/groups/start.php b/mod/groups/start.php index f577b096c..ca402df15 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -53,6 +53,9 @@ // Use group widgets use_widgets('groups'); + // Add a page owner + add_page_owner_handler('groups_page_owner_handler'); + // For now, we'll hard code the groups profile items as follows: // TODO make this user configurable @@ -73,6 +76,23 @@ ); } + /** + * Set a page owner handler. + * + */ + function groups_page_owner_handler() + { + $group_guid = get_input('group_guid'); + if ($group_guid) + { + $group = get_entity($group_guid); + if ($group instanceof ElggGroup) + return $group->owner_guid; + } + + return false; + } + /** * Group page handler * -- cgit v1.2.3