Entityform (block) redirect not working
In addition to this code, you must use this code.

function custom_edit_form_submit(&amp;$form, &amp;$form_state) {
   $form['actions']['submit']['#submit'][] = 'custom_edit_form_submit';
}


whenever a submit is to be altered, we need not to override the index of default submit functionality instead we create a new one to perform a functionality on submit.

I hope, it will work for you!