public function BatUnitMetadataController::entityPropertyInfo in Booking and Availability Management Tools for Drupal 7
Overrides EntityDefaultMetadataController::entityPropertyInfo
File
- modules/
bat_unit/ bat_unit.module, line 1105
Class
- BatUnitMetadataController
- The MetadataController for BatUnit entities.
Code
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties = array(
'unit_id',
'type_id',
'type',
'language',
'name',
'created',
'changed',
'status',
'uid',
);
foreach ($properties as $property) {
if (isset($info['bat_unit']['properties'][$property])) {
$info['bat_unit']['properties'][$property]['getter callback'] = 'entity_property_verbatim_get';
$info['bat_unit']['properties'][$property]['setter callback'] = 'entity_property_verbatim_set';
}
}
return $info;
}