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.
The "Edit components" SELECT list on the create feature screen is out of alphabetical order because it's sorting on array keys that are sometimes different from their label (e.g. the "node" component is labeled "Content types"). See below:
The solution is simple. I'll attach a patch immediately.
Comment | File | Size | Author |
---|---|---|---|
#8 | features-1313744-8.patch | 1.16 KB | TravisCarden |
#3 | features-1313744-3.patch | 868 bytes | TravisCarden |
#1 | features-1313744-1.patch | 858 bytes | TravisCarden |
features-components-select.jpg | 77.27 KB | TravisCarden |
Comments
Comment #1
TravisCarden CreditAttribution: TravisCarden commentedComment #2
hefox CreditAttribution: hefox commentedapplies cleaning to 7.x but
Comment #3
TravisCarden CreditAttribution: TravisCarden commentedAw, nuts! PHP doesn't support anonymous functions before version 5.3. Well, here's a new patch accounting for that, rolled against 7.x-1.x-dev.
Comment #4
TravisCarden CreditAttribution: TravisCarden commentedComment #5
febbraro CreditAttribution: febbraro commentedAll functions in PHP have global scope so this needs to be better namespaced and should also be moved external to the features_export_form function.
Comment #6
febbraro CreditAttribution: febbraro commentedCommitted to 7.x branch.
http://drupalcode.org/project/features.git/commit/8938628
Comment #7
tim.plunkettComment #8
TravisCarden CreditAttribution: TravisCarden commentedThank you for the shepherding, @febbraro!
Here's a patch against 6.x-1.x-dev.
Comment #9
tim.plunkettThanks!
http://drupalcode.org/project/features.git/commit/0b1aae3
Comment #10.0
(not verified) CreditAttribution: commentedUpdated issue summary.