function rooms_booking_manager_block_view in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Implements hook_block_view().
File
- modules/
rooms_booking_manager/ rooms_booking_manager.module, line 3193 - 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_block_view($block_name = '') {
if ($block_name == 'rooms_availability_search') {
module_load_include('inc', 'rooms_booking_manager', 'rooms_booking_manager.availability_search');
$form = drupal_get_form('rooms_booking_availability_search_form_block');
$block = array(
'subject' => t('Availability Search'),
'content' => $form,
);
return $block;
}
}