You need an implementation of hook_field_extra_fields() so that site builders can reposition the element you add to the user edit form.

See attached patch.

CommentFileSizeAuthor
password_policy_field_extra_fields.patch801 bytesAngry Dan

Comments

erikwebb’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Category: Bug report » Feature request
erikwebb’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
aohrvetpv’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

To restate, this patch would allow moving via the Field UI the Password Policy fieldset containing the "Force password change on next login" checkbox.

Looked at porting this patch to 7.x-2.x, but it is not applicable because 7.x-2.x lacks a fieldset on the user_profile_form since it does not yet implement a "Force password change on next login" feature. I did not see an open feature request to add the "Force password change on next login" feature.

Patch is simple and seems low risk, so I would see no harm in committing on 7.x-1.x, even though it is debatably a feature request. Tested and still applies on 7.x-1.x-dev.

  • Commit 87ead28 on 7.x-1.x authored by Angry Dan, committed by erikwebb:
    Issue #2129745 by Angry Dan: Implement hook_field_extra_fields()
    
erikwebb’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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