You are here

function _mail_logger_overview_clear_logs_submit in Mail Logger 7

Callback: Deletes mail logs.

1 string reference to '_mail_logger_overview_clear_logs_submit'
mail_logger_form_overview in ./mail_logger.pages.inc
Form to filter the list of logged emails.

File

./mail_logger.pages.inc, line 279
User-facing UI components for the Mail Logger module.

Code

function _mail_logger_overview_clear_logs_submit($form, &$form_state) {
  db_truncate('mail_logger')
    ->execute();
  drupal_set_message(t('Mail logs cleared.'));
}