function entityform_delete_form_submit in Entityform 7.2
Same name and namespace in other branches
- 7 entityform.admin.inc \entityform_delete_form_submit()
Submit callback for entityform_delete_form.
1 string reference to 'entityform_delete_form_submit'
- entityform_delete_form in ./
entityform.admin.inc - Form callback: confirmation form for deleting a entityform.
File
- ./
entityform.admin.inc, line 676 - Entityform editing UI.
Code
function entityform_delete_form_submit($form, &$form_state) {
$entityform = $form_state['entityform'];
entityform_delete($entityform);
drupal_set_message(t('The Submission for %name has been deleted.', array(
'%name' => $entityform
->getTypeName(),
)));
watchdog('entityform', 'Deleted Submission for %name.', array(
'%name' => $entityform
->getTypeName(),
));
$form_state['redirect'] = "admin/structure/entityform_types/manage/{$entityform->type}/submissions";
}