public function BatType::getEventValueDefaultField in Booking and Availability Management Tools for Drupal 7
Parameters
string $event_type:
Return value
string|false
2 calls to BatType::getEventValueDefaultField()
- BatType::getEventDefaultValue in modules/
bat_unit/ bat_unit.module - BatType::getEventValueFormatter in modules/
bat_unit/ bat_unit.module
File
- modules/
bat_unit/ bat_unit.module, line 1978
Class
- BatType
- The class used for Bat Type entities.
Code
public function getEventValueDefaultField($event_type) {
$type_bundle = bat_type_bundle_load($this->type);
if (isset($type_bundle->default_event_value_field_ids[$event_type])) {
return $type_bundle->default_event_value_field_ids[$event_type];
}
return FALSE;
}