You are here

function registration_entity_insert in Entity Registration 8

Same name and namespace in other branches
  1. 8.2 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 814

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);
  }
}