You are here

function mail_edit_template_remove_confirm in Mail Editor 7

Asks for confirmation of template removal.

_state

Parameters

array $form:

string $id:

string $lang_code:

Return value

array

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

File

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

Code

function mail_edit_template_remove_confirm(array $form, array &$form_state, $id, $lang_code) {
  $form['id'] = array(
    '#type' => 'hidden',
    '#value' => $id,
  );
  $form['lang_code'] = array(
    '#type' => 'hidden',
    '#value' => $lang_code,
  );
  $args = explode('/', current_path());
  array_pop($args);
  $path = implode('/', $args);
  return confirm_form($form, t('Are you sure you want to remove the %mailkey template?', array(
    '%mailkey' => "{$id}/{$lang_code}",
  )), $path, NULL, t('Remove'));
}