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.
Problem/Motivation
The ranges in the admin form are hard coded arrays which can be prone to errors.
Proposed resolution
Replace them with a range function.
Remaining tasks
Patch.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2642382-range-options-with-method.patch | 3.83 KB | Sam152 |
|
Comments
Comment #2
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedPatch depends on #2642380: Use states API for the admin form instead of custom JavaScript toggles..
Comment #3
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #5
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedComment #7
frjo CreditAttribution: frjo commentedNice solution, Drupal should have a optionsRange function built in.
Committed to 8-dev.