You are here

function search_log_custom_search_blocks_form_submit in Search Log 7

Same name and namespace in other branches
  1. 8 search_log.module \search_log_custom_search_blocks_form_submit()

Process custom search form to capture keys.

1 string reference to 'search_log_custom_search_blocks_form_submit'
search_log_form_alter in ./search_log.module
Implements hook_form_alter().

File

./search_log.module, line 170
Replaces default report of top search phrases.

Code

function search_log_custom_search_blocks_form_submit($form, &$form_state) {
  $keys = NULL;
  foreach ($form_state['values'] as $key => $value) {
    if (strpos($key, 'custom_search_blocks_form') !== FALSE) {
      $keys = $value;
      break;
    }
  }
  if ($keys) {
    _search_log_preprocess_search_form($form_state['values'], $keys);
  }
}