diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-04 14:21:12 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-04 14:21:12 +0000 |
commit | 688a1e02a89e25caba37c91be7ac56d7bdc6dc4a (patch) | |
tree | f954680aa8a7aaa33f2cc5b1846c952d516995fe /mod/groups/start.php | |
parent | f361fa6d7a3e990ed6bcb05cf634ef9cfae0fe4d (diff) | |
download | elgg-688a1e02a89e25caba37c91be7ac56d7bdc6dc4a.tar.gz elgg-688a1e02a89e25caba37c91be7ac56d7bdc6dc4a.tar.bz2 |
Refs #109 : Widget support
git-svn-id: https://code.elgg.org/elgg/trunk@1293 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r-- | mod/groups/start.php | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ -74,6 +77,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 * * @param array $page Array of page elements, forwarded by the page handling mechanism |