function dblog_clear_log_submit

7.x dblog.admin.inc dblog_clear_log_submit()

Form submission handler for dblog_clear_log_form().

1 string reference to 'dblog_clear_log_submit'
dblog_clear_log_form in drupal/modules/dblog/dblog.admin.inc
Form constructor for the form that clears out the log.

File

drupal/modules/dblog/dblog.admin.inc, line 414
Administrative page callbacks for the Database Logging module.

Code

function dblog_clear_log_submit() {
  $_SESSION['dblog_overview_filter'] = array();
  db_delete('watchdog')->execute();
  drupal_set_message(t('Database log cleared.'));
}