You are here

function bat_unit_bundle_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_bundle_create()

Creates a unit object.

Parameters

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

1 call to bat_unit_bundle_create()
bat_unit_install_create_default_unit_bundle in modules/bat_unit/bat_unit.install
Create default unit bundle.

File

modules/bat_unit/bat_unit.module, line 877

Code

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