You are here

function quant_time_form_submit in Quant 6

Same name and namespace in other branches
  1. 7 quant.pages.inc \quant_time_form_submit()

Submit handler for quant_time_form()

File

includes/forms.inc, line 128
Form-building functions

Code

function quant_time_form_submit(&$form, $form_state) {

  // Add a query to the URL which will be used to determine the query
  switch ($form_state['values']['option']) {
    case 'period':
      drupal_goto('analytics', 'option=period&period=' . $form_state['values']['period']);
      break;
    case 'custom':
      drupal_goto('analytics', 'option=custom&from=' . $form_state['values']['custom_from'] . '&to=' . $form_state['values']['custom_to']);
      break;
  }
}