function entityform_delete_form in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.admin.inc \entityform_delete_form()
Form callback: confirmation form for deleting a entityform.
Parameters
$entityform: The entityform to delete
See also
2 string references to 'entityform_delete_form'
- entityform_delete_form_wrapper in ./
entityform.admin.inc - Form callback wrapper: delete a entityform.
- entityform_mollom_form_list in ./
entityform.module - Implements hook_mollom_form_list().
File
- ./
entityform.admin.inc, line 520 - Entityform editing UI.
Code
function entityform_delete_form($form, &$form_state, $entityform) {
$form_state['entityform'] = $entityform;
$form['#submit'][] = 'entityform_delete_form_submit';
$form = confirm_form($form, t('Are you sure you want to delete this Submission for %type?', array(
'%type' => $entityform
->getTypeName(),
)), "admin/structure/entityform_types/manage/{$entityform->type}/submissions", '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
return $form;
}