You are here

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

Fetches a booking object.

Parameters

int $booking_id: Integer specifying the booking id.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

object A fully-loaded $booking object or FALSE if it cannot be loaded.

See also

rooms_booking_load_multiple()

5 calls to rooms_booking_load()
BookingEvent::formatJson in modules/rooms_availability/includes/rooms_availability.booking_event.inc
Returns event in a format amenable to FullCalendar display or generally sensible JSON.
RoomsBookingController::delete in modules/rooms_booking/rooms_booking.module
Implements EntityAPIControllerInterface.
rooms_availability_event_manager_page in modules/rooms_availability/rooms_availability.module
The EventManager page shows when clicking on an event in the availability calendar - will allow a user to manipulate that event.
rooms_booking_commerce_line_item_delete in modules/rooms_booking/rooms_booking.module
Implements hook_commerce_line_item_delete().
rooms_booking_commerce_order_delete in modules/rooms_booking/rooms_booking.module
Implements hook_commerce_order_delete().

File

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

Code

function rooms_booking_load($booking_id, $reset = FALSE) {
  $bookings = rooms_booking_load_multiple(array(
    $booking_id,
  ), array(), $reset);
  return reset($bookings);
}