Habari\User::remove_from_group PHP Method

remove_from_group() public method

function remove_from_group removes this user from a group
public remove_from_group ( integer | string | UserGroup $group ) : null
$group integer | string | UserGroup A group ID, name, or UserGroup instance
return null
    public function remove_from_group($group)
    {
        $group = UserGroup::get($group);
        if ($group instanceof UserGroup) {
            $group->remove($this->id);
            EventLog::log(_t(' User %1$s: Removed from %2$s group.', array($this->username, $group->name)), 'notice', 'user', 'habari');
        }
    }