function maillog_maillog_delete_form in Maillog / Mail Developer 7
FormAPI callback to allow deleting a Maillog record.
1 string reference to 'maillog_maillog_delete_form'
- maillog_menu in ./
maillog.module - Implements hook_menu().
File
- ./
maillog.pages.inc, line 24 - Menu API callback handlers for Maillog pages.
Code
function maillog_maillog_delete_form($form, &$form_state, $maillog) {
$form['id'] = array(
'#type' => 'value',
'#value' => $maillog['id'],
);
// Show some details of the email message.
$form['message'] = array(
'#type' => 'fieldset',
'#collapsible' => FALSE,
'#title' => t('Message details'),
);
$form['message']['subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#default_value' => drupal_substr($maillog['subject'], 0, 128),
'#disabled' => TRUE,
);
$form['message']['to'] = array(
'#type' => 'textfield',
'#title' => t('To'),
'#default_value' => drupal_substr($maillog['header_to'], 0, 128),
'#disabled' => TRUE,
);
return confirm_form($form, t('Delete Maillog record?'), 'admin/reports/maillog', t('This action cannot be undone.'));
}