You are here

public function BatTypeMetadataController::entityPropertyInfo in Booking and Availability Management Tools for Drupal 7

Overrides EntityDefaultMetadataController::entityPropertyInfo

File

modules/bat_unit/bat_unit.module, line 2026

Class

BatTypeMetadataController
The MetadataController for BatType entities.

Code

public function entityPropertyInfo() {
  $info = parent::entityPropertyInfo();
  $properties = array(
    'type_id',
    'type',
    'language',
    'name',
    'created',
    'changed',
    'status',
    'uid',
  );
  foreach ($properties as $property) {
    if (isset($info['bat_type']['properties'][$property])) {
      $info['bat_type']['properties'][$property]['getter callback'] = 'entity_property_verbatim_get';
      $info['bat_type']['properties'][$property]['setter callback'] = 'entity_property_verbatim_set';
    }
  }
  return $info;
}