public function GProfile::getMember in Group 7
Get the member this profile belongs to.
Return value
GroupMembership The GroupMembership entity of the member.
1 call to GProfile::getMember()
- GProfile::defaultLabel in modules/
gprofile/ classes/ gprofile.inc - Defines the entity label if the 'entity_class_label' callback is used.
File
- modules/
gprofile/ classes/ gprofile.inc, line 41 - Defines the Entity API class for group member profiles.
Class
- GProfile
- Main class for group member profiles.
Code
public function getMember() {
$group_memberships = group_membership_load_multiple(array(
$this->mid,
));
return reset($group_memberships);
}