Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm building custom forms based on register form, that's why need to fire up alters manually. In current version I have to do something like this:
email_registration_form_user_register_form_alter($form, $form_state['object'], 'user_register_form');
though it's better to get rid of 3d variabe $form_id which is useless of hook_form_FORM_ID_alter:
email_registration_form_user_register_form_alter($form, $form_state['object']);
Comment | File | Size | Author |
---|---|---|---|
#1 | email-registration-1808366-1.patch | 2.01 KB | cr0ss |
Comments
Comment #1
cr0ss CreditAttribution: cr0ss commentedPatch attached.
Comment #2
gregglesLooks good to me.
Better status.
Comment #3
gregglesNow committed - http://drupalcode.org/project/email_registration.git/commit/259f498
Thanks, cr0ss!