You are here

function entityform_form_wrapper_preview in Entityform 7.2

Form callback wrapper: preview an entityform.

Parameters

$entityform_type: The entityform type object being edited by this form.

See also

entityform_edit_form()

1 string reference to 'entityform_form_wrapper_preview'
entityform_menu in ./entityform.module
Implements hook_menu().

File

./entityform.admin.inc, line 337
Entityform editing UI.

Code

function entityform_form_wrapper_preview(EntityformType $entityform_type) {
  $entityform = entityform_empty_load($entityform_type->type);
  return entityform_form_wrapper($entityform, 'submit', 'preview');
}