You are here

public function BatUnitBundleController::create in Booking and Availability Management Tools for Drupal 7

Creates a unit bundle.

Parameters

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

Return value

BatUnitBundle A unit bundle object with all default fields initialized.

Overrides EntityAPIController::create

File

modules/bat_unit/bat_unit.module, line 1224

Class

BatUnitBundleController
The Controller for Unit entities.

Code

public function create(array $values = array()) {

  // Add values that are specific to our Unit.
  $values += array(
    'id' => '',
    'is_new' => TRUE,
    'data' => '',
  );
  $unit_bundle = parent::create($values);
  return $unit_bundle;
}