function quant_time_form_submit in Quant 7
Same name and namespace in other branches
- 6 includes/forms.inc \quant_time_form_submit()
Submit handler for quant_time_form()
File
- ./
quant.pages.inc, line 203 - Page callbacks
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':
$form_state['redirect'] = array(
current_path(),
array(
'query' => array(
'option' => 'period',
'period' => $form_state['values']['period'],
),
),
);
break;
case 'custom':
$form_state['redirect'] = array(
current_path(),
array(
'query' => array(
'option' => 'custom',
'from' => $form_state['values']['custom_from'],
'to' => $form_state['values']['custom_to'],
),
),
);
break;
}
}