diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/group.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index cc488ab0d..b0c6d3346 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -729,7 +729,15 @@ return remove_entity_relationship($user_guid, 'member', $group_guid); } - + /** + * Return all groups a user is a member of. + * + * @param unknown_type $user_guid + */ + function get_users_membership($user_guid) + { + return get_entities_from_relationship('member', $user_guid, true); + } ?>
\ No newline at end of file |