function bat_event_load_state in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_event/bat_event.module \bat_event_load_state()
Returns information about the configuration of a given fixed event state.
Parameters
int $state_id:
Return value
array
10 calls to bat_event_load_state()
- BatEvent::defaultLabel in modules/
bat_event/ bat_event.module - Return the event label.
- bat_event_autocomplete_validate in modules/
bat_event/ bat_event.module - Validation callback for a event state autocomplete element.
- bat_event_autocomplete_value in modules/
bat_event/ bat_event.module - Value callback for a bat_event_reference autocomplete element.
- bat_event_edit_form_validate in modules/
bat_event/ bat_event.admin.inc - Form API validate callback for the event form.
- bat_event_field_formatter_view in modules/
bat_event/ bat_event.module - Implements hook_field_formatter_view().
File
- modules/
bat_event/ bat_event.module, line 330 - Manage Events - Events store the EventValue of a Unit over a period of time.
Code
function bat_event_load_state($state_id) {
$event_states = bat_event_get_states();
if (isset($event_states[$state_id])) {
return $event_states[$state_id];
}
return FALSE;
}