You are here

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

Creates a Bat Type.

Parameters

array $values: The properties for the new Bat Type bundle.

Return value

BatType A Bat Type object with all default fields initialized.

Overrides EntityAPIController::create

File

modules/bat_unit/bat_unit.module, line 2073

Class

BatTypeController
The Controller for BatType entities.

Code

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

  // Add values that are specific to our Bat Type.
  $values += array(
    'type_id' => '',
    'is_new' => TRUE,
    'name' => '',
    'created' => '',
    'changed' => '',
  );
  $type = parent::create($values);
  return $type;
}