This no longer works: (go find out yourself, why)

user.module: user_register_form():

  // If the "account" fieldset is the only element at the top level, its
  // borders are hidden for aesthetic reasons. We do not remove the fieldset but
  // preserve the form structure so that modules implementing
  // hook_form_FORM_ID_alter() know where to find the basic elements.
  if (count(element_children($form)) == 1) {
    $form['account']['#type'] = 'markup';
  }

What do we do about it?

1) Turn the #type fieldset into markup by default and remove this snippet. The account fields are usually display first anyway. (But keep the structure, so people can re-inject and move it around).

2) Make it work again by introducing user_register_form_after_build().

Comments

sun’s picture

Issue tags: +Needs usability review

.

Bojhan’s picture

Lets do 1#? Aslong as it doesnt do the fieldset?

sun’s picture

Title: UX: Account fieldset on user account form? » UX: Remove account fieldset on user account form
Assigned: Unassigned » sun
Status: Active » Needs review
StatusFileSize
new1.66 KB

heh, the code seems to have been fixed in the meantime, but got wrecked by yet another change since then.

So this patch does 1) never show a fieldset for the primary user account information. That's clear and predictable, and follows UX changes we applied to other forms throughout core already.

http://api.drupal.org/api/function/element_get_visible_children/7 is no longer invoked with this patch, but the function may be useful for someone. Also, we're past API freeze, so can no longer be removed.

Status: Needs review » Needs work

The last submitted patch, drupal.user-account-fieldset.3.patch, failed testing.

Bojhan’s picture

As you reroll - can you trow in a image?

sun’s picture

Status: Needs work » Needs review
StatusFileSize
new2.68 KB

I don't really understand those test failures, can't replicate them locally. Anyway, one test needed to be corrected to no longer expect this fieldset.

Here's how it looks: (note, considered to capture in Garland, but thought that it's also worth to mention the design hiccup in Bartik)

sun’s picture

StatusFileSize
new16.08 KB

d'oh. :P

user-account-fieldset.png

Bojhan’s picture

That is ehm wierd.

sun’s picture

StatusFileSize
new36.59 KB

well, much fancier it is:

user-account-fieldset.garland.png

Bojhan’s picture

So is Bartik fixable, or is it a not-related to this issue - issue.

Status: Needs review » Needs work
Issue tags: -Needs usability review

The last submitted patch, drupal.user-account-fieldset.6.patch, failed testing.

sun’s picture

Status: Needs work » Needs review
Issue tags: +Needs usability review
sun’s picture

That's not related to this issue. Bartik has a lot of layout/design issues, which are hopefully resolved soon.

I'm not sure what's up with the bot... those failures are entirely unrelated to this patch, and we're getting completely different failures for each patch here. I suspect one of the testing clients must be broken.

sun’s picture

The patch came back green now.

Bojhan’s picture

Status: Needs review » Reviewed & tested by the community

RTBC it is then.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Needs usability review

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