diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-18 14:02:11 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-18 14:02:11 +0000 |
commit | fefa3a1bdc56cd0e015fee96a9c39b9b60e1d84a (patch) | |
tree | 19b0fb5616855755c15dd2e4439178080c3f32bd /engine | |
parent | 1e864cad815ab1a8e587e36f16e4857daa5e52d1 (diff) | |
download | elgg-fefa3a1bdc56cd0e015fee96a9c39b9b60e1d84a.tar.gz elgg-fefa3a1bdc56cd0e015fee96a9c39b9b60e1d84a.tar.bz2 |
Closes #166
git-svn-id: https://code.elgg.org/elgg/trunk@1471 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-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 |