You are here

public function Group::removeMember in Group 7

Remove a member from a group.

Parameters

int $uid: The uid of the member.

File

classes/group.inc, line 281
Defines the Entity API class for groups.

Class

Group
Main class for groups.

Code

public function removeMember($uid) {
  if ($group_membership = $this
    ->getMember($uid)) {
    $group_membership
      ->delete();
  }
}