You are here

public function OgGroup::getEntity in Organic groups 7

Return the entity the group is related to.

3 calls to OgGroup::getEntity()
OgGroup::access in ./og.module
Return TRUE if user has access to 'view', 'update' or 'delete' the entity that is the group. Otherwise return FALSE.
OgGroup::uri in ./og.module
Return the URI of the entity the group is related to.
OgGroup::user in ./og.module
Returns the group manager if exists or FALSE if entity has no User ID assigned with it.

File

./og.module, line 1327
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 getEntity() {
  $entity = entity_load($this->entity_type, array(
    $this->etid,
  ));
  $entity = reset($entity);
  return $entity;
}