You are here

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

Create a booking object.

7 calls to rooms_booking_create()
FeatureContext::createBookings in test/features/bootstrap/FeatureContext.php
@Given /^"(?P<type>[^"]*)" bookings:$/
FeatureContext::createBookingsForUnit in test/features/bootstrap/FeatureContext.php
RoomsBookingUIController::hook_menu in modules/rooms_booking/rooms_booking.admin.inc
Overrides hook_menu() defaults.
rooms_booking_create_form_wrapper in modules/rooms_booking/rooms_booking.admin.inc
Form callback wrapper: create a Booking.
rooms_booking_edit_form_submit in modules/rooms_booking/rooms_booking.admin.inc
Form API submit callback for the Booking form.

... See full list

1 string reference to 'rooms_booking_create'
rooms_booking_entity_info in modules/rooms_booking/rooms_booking.module
Implements hook_entity_info().

File

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

Code

function rooms_booking_create($values = array()) {
  return entity_get_controller('rooms_booking')
    ->create($values);
}