You are here

function bat_booking_entity_insert in Booking and Availability Management Tools for Drupal 7

Same name and namespace in other branches
  1. 8 modules/bat_booking/bat_booking.module \bat_booking_entity_insert()

Implements hook_entity_insert().

File

modules/bat_booking/bat_booking.module, line 682

Code

function bat_booking_entity_insert($entity, $type) {
  if ($type == 'bat_booking_type') {
    bat_booking_add_start_date_field($entity->type);
    bat_booking_add_end_date_field($entity->type);
    bat_booking_add_event_reference_field($entity->type);
  }
}