You are here

function mail_edit_purge_mailkey in Mail Editor 7

Page callback for purging a mail template.

_state

Parameters

array $form:

string $mailkey:

Return value

array

1 string reference to 'mail_edit_purge_mailkey'
mail_edit_menu in ./mail_edit.module
Implements hook_menu().

File

./mail_edit.admin.inc, line 687
Administrative interface for the Mail Editor module.

Code

function mail_edit_purge_mailkey(array $form, array $form_state, $mailkey) {
  $form['mailkey'] = array(
    '#type' => 'hidden',
    '#value' => $mailkey,
  );
  return confirm_form($form, t('Are you sure you want to purge the %mailkey template and all translations?', array(
    '%mailkey' => $mailkey,
  )), 'admin/config/system/mail-edit', NULL, t('Purge'));
}