You are here

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

Prepares Units on a per type basis.

1 call to rooms_booking_manager_present_types()
rooms_booking_manager_results_page in modules/rooms_booking_manager/rooms_booking_manager.module
Constructs the booking results page following an availability search.

File

modules/rooms_booking_manager/rooms_booking_manager.module, line 786
Rooms Booking Manager brings together all the pieces required to find a room and book it - including the DrupalCommerce integration

Code

function rooms_booking_manager_present_types($units_per_type, $content, $start_date, $end_date, $booking_parameters, $b_units, $type = '') {

  // Flag used in tpl.
  $content['style'] = ROOMS_PER_TYPE;

  // We build all the content as a form for now.
  $content['units_per_type_form'] = drupal_get_form('book_units_per_type_form', $units_per_type, $start_date, $end_date, $booking_parameters, $b_units, $type);
  return $content;
}