function top_searches_admin_form_validate in Top Searches 6
Same name and namespace in other branches
- 7 top_searches.admin.inc \top_searches_admin_form_validate()
 
File
- ./
top_searches.admin.inc, line 48  - Admin options for top_searches module
 
Code
function top_searches_admin_form_validate($form, &$form_state) {
  // In case we need to clear the DB table, redirect:
  if ($form_state['values']['op'] == t('Reset search counters')) {
    drupal_goto('admin/settings/top_searches/clear');
  }
}