You are here

function bat_unit_create in Booking and Availability Management Tools for Drupal 7

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

Creates a unit object.

Parameters

array $values: The properties for the new unit bundle.

9 calls to bat_unit_create()
BatTypeUIController::hook_menu in modules/bat_unit/bat_type.admin.inc
Overrides hook_menu() defaults.
BatUnitUIController::hook_menu in modules/bat_unit/bat_unit.admin.inc
Overrides hook_menu() defaults.
bat_type_add_units_form_submit in modules/bat_unit/bat_type.admin.inc
Submit handler for unit add form.
bat_type_add_units_form_wrapper in modules/bat_unit/bat_type.admin.inc
Form callback wrapper: create units associated with a type.
bat_unit_add_access in modules/bat_unit/bat_unit.module
Access callback: Checks whether the user has permission to add a unit.

... See full list

1 string reference to 'bat_unit_create'
bat_unit_entity_info in modules/bat_unit/bat_unit.module
Implements hook_entity_info().

File

modules/bat_unit/bat_unit.module, line 857

Code

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