The form element for user account has no default #type set in user_account_form of user.module. This means drupal_process_form always sets this element to #processed=false since there is no default #process to run on it. This probably has no major implications except that the field_group module only allows elements with #processed=true inside field groups and therefore user account information cannot be placed inside a field group (see http://drupal.org/node/1182198). The obvious patch is to set $form['account']['#type'] = 'container'.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1184830-user-account-container.patch | 427 bytes | linclark |
Comments
Comment #1
Anonymous (not verified) commentedThis makes sense, and there is a precedent for doing it in all of the other forms which are in user.admin.inc, so I've attached a patch.
Comment #2
Anonymous (not verified) commentedAlthough it looks like the issue that caused this is closed... I would be fine with either a commit or a CWF on this.
Comment #3
tstoecklerComment #4
webchickI couldn't remember seeing this pattern before, but a quick grep shows that it's fairly common, esp. in *.admin.inc files.
This looks pretty harmless for D7 as well, so committed and pushed to both 8.x and 7.x. Thanks!
Comment #4.0
neoglez commentedUpdated issue summary.
Comment #5.0
(not verified) commentedUpdated issue summary.