You are here

function node_convert_template_delete_confirm in Node Convert 7

Same name and namespace in other branches
  1. 6 node_convert.module \node_convert_template_delete_confirm()

Delete template confirmation form.

1 string reference to 'node_convert_template_delete_confirm'
node_convert_menu in ./node_convert.module
Implements hook_menu().

File

./node_convert.admin.inc, line 64
Administration page callbacks for the node_convert module.

Code

function node_convert_template_delete_confirm($form, &$form_state, $template_id) {
  $form['template_id'] = array(
    '#type' => 'value',
    '#value' => $template_id,
  );
  $form['delete_action'] = array(
    '#type' => 'checkbox',
    '#title' => t("Delete action?"),
    '#default_value' => 1,
    '#description' => t("If the option is checked, all actions that contain this template will be erased. Otheriwise, the actions' template will be set to none."),
  );
  return confirm_form($form, t('Are you sure you want to delete this template?'), isset($_GET['destination']) ? $_GET['destination'] : 'admin/structure/node_convert_templates', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}