You are here

function group_memberships in Group 7

Load all group memberships, optionally filtered by property values.

Parameters

array $filters: (optional) An associative array with property names for keys and the values you wish to filter on as accompanying array values.

Return value

array An array of GroupMembership entities, keyed by their membership ids.

7 calls to group_memberships()
ggroup_entity_delete in modules/ggroup/ggroup.entity.inc
Implements hook_entity_delete().
ggroup_update_7004 in modules/ggroup/ggroup.install
Add the heritage column to {group_membership}.
ginvite_uninstall in modules/ginvite/ginvite.install
Implements hook_uninstall().
GroupMembership::getByStatus in classes/group_membership.inc
Get all memberships by status for a user.
group_membership_load in helpers/group_membership.entity.inc
Load a group membership by group and user id.

... See full list

File

helpers/group_membership.entity.inc, line 34
Entity API related helper functions for group memberships.

Code

function group_memberships(array $filters = array()) {
  return entity_load('group_membership', FALSE, $filters, FALSE);
}