function search_log_report_form_submit in Search Log 7
Same name and namespace in other branches
- 6 search_log.admin.inc \search_log_report_form_submit()
Report filter submit.
File
- ./
search_log.admin.inc, line 440 - Admin page callbacks file for the search_log module.
Code
function search_log_report_form_submit($form, &$form_state) {
$modules = isset($form_state['values']['modules']) ? array_flip($form_state['values']['modules']) : array();
unset($modules[0]);
$languages = isset($form_state['values']['languages']) ? array_flip($form_state['values']['languages']) : array();
unset($languages[0]);
$_SESSION['search_log'] = array(
'from' => $form_state['values']['from_date'],
'to' => $form_state['values']['to_date'],
'modules' => array_keys($modules),
'languages' => array_keys($languages),
'result' => $form_state['values']['result'],
);
}