You are here

function mailhandler_admin_delete_confirm in Mailhandler 7

Same name and namespace in other branches
  1. 5 mailhandler.module \mailhandler_admin_delete_confirm()
  2. 6 mailhandler.admin.inc \mailhandler_admin_delete_confirm()

Confirm/Delete Mailbox

1 string reference to 'mailhandler_admin_delete_confirm'
mailhandler_menu in ./mailhandler.module
Implementation of hook_menu().

File

./mailhandler.admin.inc, line 269

Code

function mailhandler_admin_delete_confirm($form_state, $mid) {
  $info = db_fetch_object(db_query("SELECT mid, mail FROM {mailhandler} WHERE mid = %d", $mid));
  $form['mid'] = array(
    '#type' => 'hidden',
    '#value' => $mid,
  );
  return confirm_form($form, t('Do you wish to delete mailbox %mailbox?', array(
    '%mailbox' => $info->mail,
  )), 'admin/content/mailhandler', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}