function mail_logger_form_overview_submit in Mail Logger 7
Same name and namespace in other branches
- 5 mail_logger.module \mail_logger_form_overview_submit()
- 6 mail_logger.module \mail_logger_form_overview_submit()
hook_submit for mail_logger_form_overview
File
- ./
mail_logger.pages.inc, line 259 - User-facing UI components for the Mail Logger module.
Code
function mail_logger_form_overview_submit($form, &$form_state) {
if (in_array('filter', $form_state['triggering_element']['#attributes'])) {
$_SESSION['mail_logger_overview_filter'] = $form_state['values']['filter'];
$_SESSION['mail_logger_overview_from_date'] = $form_state['values']['from_date'];
$_SESSION['mail_logger_overview_to_date'] = $form_state['values']['to_date'];
$_SESSION['mail_logger_overview_search_field'] = $form_state['values']['search_field'];
$_SESSION['mail_logger_overview_search_value'] = $form_state['values']['search_value'];
}
elseif (in_array('reset', $form_state['triggering_element']['#attributes'])) {
$_SESSION['mail_logger_overview_filter'] = 'all';
$_SESSION['mail_logger_overview_from_date'] = '';
$_SESSION['mail_logger_overview_to_date'] = '';
$_SESSION['mail_logger_overview_search_field'] = '';
$_SESSION['mail_logger_overview_search_value'] = '';
}
}