You are here

function bat_facets_availability_submit in Booking and Availability Management Tools for Drupal 7

Submit handler.

File

modules/bat_facets/bat_facets.module, line 132

Code

function bat_facets_availability_submit($form, &$form_state) {
  $form_state['redirect'] = array(
    $_GET['q'],
    array(
      'query' => array(
        'bat_start_date' => $form_state['values']['arrival'],
        'bat_end_date' => $form_state['values']['departure'],
      ),
    ),
  );
}