function pet_delete_confirm in Previewable email templates 6
Delete PET.
1 string reference to 'pet_delete_confirm'
- pet_menu in ./
pet.module - Implementation of hook_menu().
File
- ./
pet.admin.inc, line 230 - Contains administrative pages for creating, editing, and deleting previewable email templates (PETs).
Code
function pet_delete_confirm(&$form_state, $name) {
$pet = pet_load($name);
if (empty($pet)) {
drupal_goto('admin/build/pets');
}
$form['name'] = array(
'#type' => 'value',
'#value' => $pet->name,
);
return confirm_form($form, t('Are you sure you want to delete template %title?', array(
'%title' => $pet->title,
)), 'admin/build/pets', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}