If an element has defines #parents upfront, then form_builder() takes the #parents as base for #array_parents.

I do not have an actual bug to showcase this, but while debugging #414424: Introduce Form API #type 'text_format', I realized that this situation can occur.

CommentFileSizeAuthor
drupal.form-builder-array-parents.patch1.17 KBsun
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Status: Needs review » Reviewed & tested by the community

Um. The original made no sense. My fault. It was written very late in D6 cycle, beta 3 time alas :/ so it was faulty. Oh well.

casey’s picture

Dries’s picture

Status: Reviewed & tested by the community » Needs work

Committed to CVS HEAD. Marking it as 'code needs work' for a documentation follow-up per #2.

Thanks sun.

sun’s picture

Status: Needs work » Fixed

I've provided some insightful docs over in #279246: FAPI #array_parents is not documented

Status: Fixed » Closed (fixed)

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