function 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 modules/
dblog/ dblog.admin.inc - Form constructor for the form that clears out the log.
File
-
modules/
dblog/ dblog.admin.inc, line 427
Code
function dblog_clear_log_submit() {
$_SESSION['dblog_overview_filter'] = array();
db_truncate('watchdog')->execute();
drupal_set_message(t('Database log cleared.'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.