function mailhandler_admin_delete_confirm_submit in Mailhandler 7
Same name and namespace in other branches
- 5 mailhandler.module \mailhandler_admin_delete_confirm_submit()
- 6 mailhandler.admin.inc \mailhandler_admin_delete_confirm_submit()
File
- ./
mailhandler.admin.inc, line 289
Code
function mailhandler_admin_delete_confirm_submit($form, &$form_state) {
$info = db_fetch_object(db_query("SELECT mid, mail FROM {mailhandler} WHERE mid = %d", $form_state['values']['mid']));
db_query("DELETE FROM {mailhandler} WHERE mid = %d", $form_state['values']['mid']);
watchdog('mailhandler', 'Mailhandler: Mailbox %mailbox deleted', array(
'%mailbox' => $info->mail,
), WATCHDOG_INFO);
drupal_set_message(t('Mailbox %mailbox deleted', array(
'%mailbox' => $info->mail,
)));
$form_state['redirect'] = 'admin/content/mailhandler';
return;
}