You are here

function mail_safety_admin_delete_form in Mail Safety 7

Same name and namespace in other branches
  1. 7.2 mail_safety.admin.inc \mail_safety_admin_delete_form()

Form constructor to delete a mail from the dashboard.

See also

mail_safety_admin_delete_form_submit()

1 string reference to 'mail_safety_admin_delete_form'
mail_safety_menu in ./mail_safety.module
Implements hook_menu().

File

./mail_safety.admin.inc, line 318
Admin functionality for Mail Safety

Code

function mail_safety_admin_delete_form($form, $form_state, $mail) {
  $form = array();
  $form['mail_id'] = array(
    '#type' => 'value',
    '#value' => $mail['mail_id'],
  );
  $form['#submit'] = array(
    'mail_safety_admin_delete_form_submit',
  );
  return confirm_form($form, t('Are you sure you want to delete "@subject"?', array(
    '@subject' => $mail['mail']['subject'],
  )), 'admin/config/development/mail_safety', t('This will remove the mail from the dashboard.'), t('Delete'));
}