You are here

function bat_type_bundle_new in Booking and Availability Management Tools for Drupal 8

Same name and namespace in other branches
  1. 7 modules/bat_unit/bat_unit.module \bat_type_bundle_new()

Returns an initialized bat bundle array. This is here to help other modules easily and consistently add BAT Type bundles.

File

modules/bat_unit/bat_unit.module, line 784
Manage units - Units are things that can be booked for some period of time. (e.g. rooms - but also villas bungalows, cars, drills, you-get-the-idea etc.)

Code

function bat_type_bundle_new() {
  return [
    'type' => '',
    'label' => '',
    'weight' => '0',
    'data' => [
      'hourly_availability' => 0,
    ],
    'bat_opening_time' => '',
  ];
}