function rooms_booking_page_view in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Sets up content to show an individual booking. @todo - get rid of drupal_set_title();
1 string reference to 'rooms_booking_page_view'
- RoomsBookingUIController::hook_menu in modules/
rooms_booking/ rooms_booking.admin.inc - Overrides hook_menu() defaults.
File
- modules/
rooms_booking/ rooms_booking.module, line 851 - Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.
Code
function rooms_booking_page_view($booking, $view_mode = 'full') {
$controller = entity_get_controller('rooms_booking');
$content = $controller
->view(array(
$booking->booking_id => $booking,
));
drupal_set_title($booking->name);
return $content;
}