You are here

function bat_booking_create in Booking and Availability Management Tools for Drupal 7

Same name and namespace in other branches
  1. 8 modules/bat_booking/bat_booking.module \bat_booking_create()

Create a booking object.

4 calls to bat_booking_create()
BatBookingUIController::hook_menu in modules/bat_booking/bat_booking.admin.inc
Overrides hook_menu() defaults.
bat_booking_add_access in modules/bat_booking/bat_booking.module
Access callback: Checks whether the user has permission to add a booking.
bat_booking_confirmation_form_submit in modules/bat_booking/bat_booking_example/bat_booking_example.module
Submit function for the bat_booking_confirmation_form form.
bat_booking_create_form_wrapper in modules/bat_booking/bat_booking.admin.inc
Form callback wrapper: create a Booking.
1 string reference to 'bat_booking_create'
bat_booking_entity_info in modules/bat_booking/bat_booking.module
Implements hook_entity_info().

File

modules/bat_booking/bat_booking.module, line 395

Code

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