function bat_booking_create_standard_booking_type in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_booking/bat_booking.install \bat_booking_create_standard_booking_type()
Create "Standard" booking type.
1 call to bat_booking_create_standard_booking_type()
- bat_booking_install in modules/
bat_booking/ bat_booking.install - Implements hook_install().
File
- modules/
bat_booking/ bat_booking.install, line 151 - Install, update and uninstall functions for the BAT Booking module.
Code
function bat_booking_create_standard_booking_type() {
$booking_type = bat_booking_type_create(array(
'label' => 'Standard',
'type' => 'standard',
));
$booking_type
->save();
}