You are here

function entityform_delete_form in Entityform 7.2

Same name and namespace in other branches
  1. 7 entityform.admin.inc \entityform_delete_form()

Form callback: confirmation form for deleting a entityform.

Parameters

$entityform: The entityform to delete

See also

confirm_form()

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 655
Entityform editing UI.

Code

function entityform_delete_form($form, &$form_state, $entityform) {
  $form_state['entityform'] = $entityform;
  $form['#submit'][] = 'entityform_delete_form_submit';
  $entityform_type = entityform_type_load($entityform->type);

  // @todo Where should a non-admin go when canceling?
  $form = confirm_form($form, $entityform_type
    ->get_prop('delete_confirm_msg', $entityform), "admin/structure/entityform_types/manage/{$entityform->type}/submissions", '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}