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.

CommentFileSizeAuthor
user_op_cleanup.patch3.99 KBdrewish
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Status: Needs review » Reviewed & tested by the community
drewish’s picture

did a grep to see if either function was used elsewhere in core and couldn't find any.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, 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?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.