I have a simple Entity Form and have added a custom submit handler:
$form['actions']['submit']['#submit'] = array('custom_submit','entityform_edit_form_submit');
That works very well. The problem is when I enable form preview before submission. My custom_submit
function runs before preview is generated and not after it was confirmed.
How do I get it to run after form has been confirmed in preview?
$form['#submit'] = array(
'custom_submit',
'entityform_edit_form_submit'
);
does not work at all.