function better_watchdog_ui_clear_all_form_submit in Better Watchdog UI 7.3
Same name and namespace in other branches
- 8 better_watchdog_ui.module \better_watchdog_ui_clear_all_form_submit()
- 7 better_watchdog_ui.module \better_watchdog_ui_clear_all_form_submit()
- 7.2 better_watchdog_ui.module \better_watchdog_ui_clear_all_form_submit()
Submit function: delete all watchdog entries.
File
- ./
better_watchdog_ui.module, line 58 - Provide views field and filter handlers, and allow bulk operations.
Code
function better_watchdog_ui_clear_all_form_submit($form, &$form_state) {
db_delete('watchdog')
->execute();
drupal_set_message(t('All log messages cleared.'));
$form_state['redirect'] = BETTER_WATCHDOG_UI_VIEW_PATH;
}