You are here

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

Create a event type - we first set up the values that are specific to our event type schema but then also go through the EntityAPIController function.

Parameters

array $values: Array containing properties to include in the event type.

Return value

object A event type object with all default fields initialized.

Overrides EntityAPIController::create

1 call to BatEventTypeController::create()
BatEventTypeController::import in modules/bat_event/bat_event.module

File

modules/bat_event/bat_event.module, line 1515
Manage Events - Events store the EventValue of a Unit over a period of time.

Class

BatEventTypeController
The Controller for Event Type entities.

Code

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

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