function rooms_booking_create_standard_booking_type in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Creates the default standard booking type.
1 call to rooms_booking_create_standard_booking_type()
- rooms_booking_install in modules/
rooms_booking/ rooms_booking.install - Implements hook_install().
File
- modules/
rooms_booking/ rooms_booking.install, line 226 - Sets up the base table for our entity and a table to store information about the entity types.
Code
function rooms_booking_create_standard_booking_type() {
$booking = new RoomsBookingType(array(
'label' => 'Standard Booking',
'type' => 'standard_booking',
));
rooms_booking_type_save($booking);
}