You are here

function rooms_booking_type_load in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Menu argument loader; Load a booking type by string.

Parameters

string $type: The machine-readable name of a booking type to load.

bool $reset: Boolean indicating if the booking types cache should be clear or not.

Return value

array|false A booking type array or FALSE if $type does not exist.

2 calls to rooms_booking_type_load()
RoomsBookingController::create in modules/rooms_booking/rooms_booking.module
Create a booking - we first set up the values that are specific to our booking but then also go through the EntityAPIController function.
rooms_booking_handler_booking_type_field::render in modules/rooms_booking/views/rooms_booking_handler_booking_type_field.inc
Render the field.

File

modules/rooms_booking/rooms_booking.module, line 663
Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.

Code

function rooms_booking_type_load($type, $reset = FALSE) {
  return rooms_booking_get_types($type, $reset);
}