You are here

function og_membership_load in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og.module \og_membership_load()

OG membership loader.

Parameters

$name: (optional) The name for this group membership. If no type is given all existing types are returned.

Return value

OgMembership Returns a fully-loaded group membership definition if a type name is passed. Else an array containing all types is returned.

5 calls to og_membership_load()
MigrateDestinationOGMembership::rollback in includes/migrate/plugins/destinations/og_membership.inc
Delete a membership.
OgBehaviorHandlerTestCase::testSetStateOnInsert in ./og.test
Test settings the OG membership state via field values, when associating a new group-content to a group.
OgGroupAndUngroup::testGroupManagerNotActive in ./og.test
Test group behaviour when the group owner is not active.
OgUiManagePeopleTestCase::testOgUiEditMembershipStatus in og_ui/og_ui.test
Change membership status for a single group user.
og_get_membership in ./og.module
Get the group membership entity by user and group.

File

./og.module, line 1306
Enable users to create and manage groups with roles and permissions.

Code

function og_membership_load($id) {
  return entity_load_single('og_membership', $id);
}