You are here

function mail_safety_delete_mail in Mail Safety 7

Same name and namespace in other branches
  1. 7.2 mail_safety.module \mail_safety_delete_mail()

Delete a specific mail from the dashboard.

Parameters

int $mail_id: The mail id as it is saved in the mail safety table.

1 call to mail_safety_delete_mail()
mail_safety_admin_delete_form_submit in ./mail_safety.admin.inc
Form submission handler for mail_safety_admin_delete_form_submit.
1 string reference to 'mail_safety_delete_mail'
mail_safety_cron_queue_info in ./mail_safety.module
Implements hook_cron_queue_info().

File

./mail_safety.module, line 229
The core Mail Safety module file

Code

function mail_safety_delete_mail($mail_id = NULL) {
  module_invoke_all('mail_safety_delete_mail', $mail_id);
  db_delete('mail_safety_dashboard')
    ->condition('mail_id', $mail_id)
    ->execute();
  return TRUE;
}