You are here

function search_log_report_form_submit in Search Log 6

Same name and namespace in other branches
  1. 7 search_log.admin.inc \search_log_report_form_submit()

Report filter submit.

File

./search_log.admin.inc, line 382
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]);
  $_SESSION['search_log'] = array(
    'from' => $form_state['values']['from_date'],
    'to' => $form_state['values']['to_date'],
    'modules' => array_keys($modules),
    'status' => $form_state['values']['status'],
    'rows' => $form_state['values']['rows'],
  );
}