diff options
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 |