You are here

function mail_logger_clear_form_submit in Mail Logger 6

File

./mail_logger.module, line 365
Mail Logger module logs all outgoing mail that passes through the drupal_mail function.

Code

function mail_logger_clear_form_submit($form, &$form_state) {
  db_query('TRUNCATE TABLE {mail_logger}');
  drupal_set_message(t('Mail log cleared.'));
}