You are here

function og_entity_getter in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og.module \og_entity_getter()

Getter callback to load the 'entity' property for groups or memberships.

2 string references to 'og_entity_getter'
OgMembershipMetadataController::entityPropertyInfo in includes/og.info.inc
OgMetadataController::entityPropertyInfo in includes/og.info.inc

File

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

Code

function og_entity_getter($object) {

  // We have to return the entity wrapped.
  return entity_metadata_wrapper($object->entity_type, $object->etid);
}