You are here

function wysiwyg_template_delete_confirm in Wysiwyg API template plugin 7.2

Menu callback -- ask for confirmation of rule deletion.

1 string reference to 'wysiwyg_template_delete_confirm'
wysiwyg_template_menu in ./wysiwyg_template.module
Implementation of hook_menu().

File

./wysiwyg_template.admin.inc, line 313
Administrative page callbacks for the Wysiwyg Template module.

Code

function wysiwyg_template_delete_confirm($form, &$form_state, $template) {
  $form['#wysiwyg_template'] = $template;
  return confirm_form($form, t('Are you sure you want to delete the template %title?', array(
    '%title' => $template['title'],
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/config/content/wysiwyg-templates', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}