You are here

public function OgGroup::user in Organic groups 7

Returns the group manager if exists or FALSE if entity has no User ID assigned with it.

File

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

Class

OgGroup
Main class for Group entities provided by Entity API.

Code

public function user() {
  $entity = $this
    ->getEntity();
  if (isset($entity->uid)) {
    return user_load($entity->uid);
  }
  return FALSE;
}