You are here

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

Saves a booking to the database.

Parameters

RoomsBooking $booking: The Booking object.

File

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

Code

function rooms_booking_save(RoomsBooking $booking) {
  return $booking
    ->save();
}