Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
drupal.form-builder-array-parents.patch | 1.17 KB | sun | |
Comments
Comment #1
chx CreditAttribution: chx commentedUm. 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.
Comment #2
casey CreditAttribution: casey commentedIt also needs documentation: #279246: FAPI #array_parents is not documented
It's not on http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Marking it as 'code needs work' for a documentation follow-up per #2.
Thanks sun.
Comment #4
sunI've provided some insightful docs over in #279246: FAPI #array_parents is not documented