function search_log_confirm_truncate_submit in Search Log 7
Same name and namespace in other branches
- 6 search_log.admin.inc \search_log_confirm_truncate_submit()
Truncate search_log table.
File
- ./
search_log.admin.inc, line 112 - Admin page callbacks file for the search_log module.
Code
function search_log_confirm_truncate_submit($form, &$form_state) {
db_query("TRUNCATE {search_log}");
drupal_set_message(t('Search log cleared.'));
if (!isset($_GET['destination'])) {
$form_state['redirect'] = 'admin/config/search/search_log';
}
}