You are here

function better_watchdog_ui_clear_all_form in Better Watchdog UI 7.2

Same name and namespace in other branches
  1. 8 better_watchdog_ui.module \better_watchdog_ui_clear_all_form()
  2. 7.3 better_watchdog_ui.module \better_watchdog_ui_clear_all_form()
  3. 7 better_watchdog_ui.module \better_watchdog_ui_clear_all_form()

Form callback to confirm deletion of all watchdog entries.

1 string reference to 'better_watchdog_ui_clear_all_form'
better_watchdog_ui_menu in ./better_watchdog_ui.module
Implements hook_menu().

File

./better_watchdog_ui.module, line 50
Provide views field and filter handlers, and allow bulk operations.

Code

function better_watchdog_ui_clear_all_form($form, &$form_state) {
  return confirm_form(array(), t('Are you sure you want to delete ALL log messages?'), array(
    'path' => BETTER_WATCHDOG_UI_VIEW_PATH,
  ), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}