function bat_event_states_form_submit in Booking and Availability Management Tools for Drupal 7
Form submit for event states management.
File
- modules/
bat_event/ bat_event.module, line 549 - Manage Events - Events store the EventValue of a Unit over a period of time.
Code
function bat_event_states_form_submit($form, &$form_state) {
$event_type = $form_state['values']['event_type'];
$event_state = array(
'label' => $form_state['values']['label'],
'color' => $form_state['values']['color'],
'calendar_label' => $form_state['values']['calendar_label'],
'blocking' => $form_state['values']['blocking'],
'machine_name' => $form_state['values']['machine_name'],
);
bat_event_save_state($event_state, $event_type);
}