You are here

function mailhandler_admin_delete_confirm in Mailhandler 5

Same name and namespace in other branches
  1. 6 mailhandler.admin.inc \mailhandler_admin_delete_confirm()
  2. 7 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.module, line 827

Code

function mailhandler_admin_delete_confirm($mid) {
  $info = db_fetch_object(db_query("SELECT mid, mail FROM {mailhandler} WHERE mid = %d", $mid));
  $form = array();
  $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'));
}