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.

CommentFileSizeAuthor
#1 asort_fields_1260248.patch533 bytesjackbravo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jackbravo’s picture

Status: Active » Needs review
FileSize
533 bytes

PATCH.

peterpoe’s picture

Status: Needs review » Fixed

Makes sense, so committed. Thanks!

Status: Fixed » Closed (fixed)

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