1 dblog.admin.inc dblog_clear_log_submit()

Form submission handler for dblog_clear_log_form().

File

core/modules/dblog/dblog.admin.inc, line 435
Admin page callbacks for the Database Logging module.

Code

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