public function BatTypeBundleController::create in Booking and Availability Management Tools for Drupal 7
Creates a Bat Type bundle.
Parameters
array $values: The properties for the new Bat Type bundle.
Return value
BatTypeBundle A Bat Type bundle object with all default fields initialized.
Overrides EntityAPIController::create
File
- modules/
bat_unit/ bat_unit.module, line 2362
Class
- BatTypeBundleController
- The Controller for Bat Type bundle entities.
Code
public function create(array $values = array()) {
// Add values that are specific to our Bat Type.
$values += array(
'id' => '',
'is_new' => TRUE,
'data' => '',
);
$type_bundle = parent::create($values);
return $type_bundle;
}