function node_convert_template_delete_confirm in Node Convert 6
Same name and namespace in other branches
- 7 node_convert.admin.inc \node_convert_template_delete_confirm()
1 string reference to 'node_convert_template_delete_confirm'
- node_convert_menu in ./
node_convert.module - Implementation of hook_menu().
File
- ./
node_convert.module, line 498 - The node_convert module converts nodes from one type to another.
Code
function node_convert_template_delete_confirm(&$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/build/node_convert_templates', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}