You are here

function registration_entity_insert in Entity Registration 8.2

Same name and namespace in other branches
  1. 8 registration.module \registration_entity_insert()
  2. 7.2 registration.module \registration_entity_insert()
  3. 7 registration.module \registration_entity_insert()

Implements hook_entity_insert().

File

./registration.module, line 864

Code

function registration_entity_insert($entity, $entity_type) {
  $registration_type = registration_get_entity_registration_type($entity_type, $entity);
  if ($registration_type !== FALSE) {
    registration_entity_set_default_settings($entity_type, $entity);
  }
}