You are here

function bat_event_create in Booking and Availability Management Tools for Drupal 7

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

Create a event object.

12 calls to bat_event_create()
BatEventUIController::hook_menu in modules/bat_event/bat_event.admin.inc
Overrides hook_menu() defaults.
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_event_add_access in modules/bat_event/bat_event.module
Access callback: Checks whether the user has permission to add an event.
bat_event_create_form_wrapper in modules/bat_event/bat_event.admin.inc
Form callback wrapper: create a Event.
bat_event_edit_form_submit in modules/bat_event/bat_event.admin.inc
Form API submit callback for the Event form.

... See full list

1 string reference to 'bat_event_create'
bat_event_entity_info in modules/bat_event/bat_event.module
Implements hook_entity_info().

File

modules/bat_event/bat_event.module, line 906
Manage Events - Events store the EventValue of a Unit over a period of time.

Code

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