Closed (works as designed)
Project:
Email Registration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Apr 2010 at 12:12 UTC
Updated:
24 Dec 2012 at 22:26 UTC
Comments
Comment #1
sp3boy commentedHow about overriding the effects of all hook_form_alter() invocations by declaring a #after_build callback?
e.g. in mymodule_hook_form_alter()
$form['#after_build'][] = 'mymodule_user_register_after_build';then
As long as no other modules have #after_build callbacks, you should be able to add your own submit function after whatever the other modules (including email_registration) have put in $form['#submit']. If your function sets $form_state['redirect'] and gets to be the last piece of code to do so, your personal redirect will be the one that is used.
I am trying to integrate FBConnect, email_registration and Content Profile with my own custom login/registration requirements, so this is a hot topic for me, but I can see that if contributed modules use this approach to override other contributed modules it becomes something of an arms race as to who gets last go at the $form variable!
Comment #2
Sam Straub commentedI commented out #125 and #124 (registration confirmation message). I use rules to direct new users to a special page and this was preventing that from happening.
An admin option would be nice or perhaps just removing all together, unless I am missing something.
Comment #3
gregglesIt looks like this was added in #648450: No e-mail verification required autologin.
You can override this behavior as described in #1 or by setting a $_REQUEST['destination'] - see http://drupal.stackexchange.com/questions/5440/form-redirect-not-working... for more details on the latter idea.