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