You are here

function group_entity_insert in Group 7

Implements hook_entity_insert().

File

./group.entity.inc, line 651
Contains all Entity API functions for the Group module.

Code

function group_entity_insert($entity, $type) {
  $entity_info = entity_get_info($type);
  if (!empty($entity_info['group entity'])) {
    group_entity_save($entity, $type);
  }
}