function og_entity_getter in Organic groups 7
Same name and namespace in other branches
- 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'
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);
}