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.
We are adding dependencies to a really really big drupal form, and the dependee and dependent fields on the admin/structure/dependencies form are sorted by id (well, actually they are not sorted at all), which makes each field really difficult to identify when you have more than 10 fields.
The necessary change is really minimal. Just an asort function once you have the $fields array and voila.
Patch in the first comment.
Comment | File | Size | Author |
---|---|---|---|
#1 | asort_fields_1260248.patch | 533 bytes | jackbravo |
Comments
Comment #1
jackbravo CreditAttribution: jackbravo commentedPATCH.
Comment #2
peterpoe CreditAttribution: peterpoe commentedMakes sense, so committed. Thanks!