function dblog_clear_log_submit in Drupal 7
Form submission handler for dblog_clear_log_form().
1 string reference to 'dblog_clear_log_submit'
- dblog_clear_log_form in modules/
dblog/ dblog.admin.inc - Form constructor for the form that clears out the log.
File
- modules/
dblog/ dblog.admin.inc, line 421 - Administrative page callbacks for the Database Logging module.
Code
function dblog_clear_log_submit() {
$_SESSION['dblog_overview_filter'] = array();
db_truncate('watchdog')
->execute();
drupal_set_message(t('Database log cleared.'));
}