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.
There's a couple of functions in user.module _user_edit_validate() and _user_edit_submit() that don't really need to be functions. They should be pulled up into user_user_validate() and user_user_submit() respectively.
Comment | File | Size | Author |
---|---|---|---|
user_op_cleanup.patch | 3.99 KB | drewish | |
Comments
Comment #1
RobLoachComment #2
drewish CreditAttribution: drewish commenteddid a grep to see if either function was used elsewhere in core and couldn't find any.
Comment #3
webchickThanks, committed to HEAD.
The only reason I could think for these to be separated is if they were intended to be called from other modules that weren't doing the form process. But if that's the case, why do they still take an $edit array, and why are they prefixed with an underscore?