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.
Problem/Motivation
The current implementation of invoking a hook is incorrect for the use case. Instead of invoking several hook implementations to receive an array of usernames and use the first entry of the array, we should simply implement an alter hook and deprecate the old implementation.
Steps to reproduce
Proposed resolution
Deprecate the old implementation and remove the old hook implementation in the submodule.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork email_registration-3396028
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
AnybodyDefinitely yes. Should be deprecated in 2.x to reduce the risk of updaters and other contrib modules to miss the update!
https://drupalize.me/tutorial/what-deprecated-code
Comment #3
Grevil CreditAttribution: Grevil at DROWL.de commentedComment #5
Grevil CreditAttribution: Grevil at DROWL.de commentedDone, don't really like the removing of the presave hook in the submodule. Feels worse than before, but please review.
Comment #6
AnybodyBut makes order and logics more clear. Less magic, clear flow.
Comment #7
Anybody@Grevil: commented, I think we had a misunderstanding regarding the new alter hooks use and logic. See the comments.
Comment #8
Grevil CreditAttribution: Grevil at DROWL.de commentedAll done, please review!
Comment #9
AnybodyAll fine for 2.x! We should now add version information on the module page and inform about the hook deprecation there (and in readme?)
Super nice improvements!
Comment #10
AnybodyComment #11
Grevil CreditAttribution: Grevil at DROWL.de commentedComment #12
AnybodyPerfect!
Comment #13
Anybody