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
When adding a View with this module, the list of Views to select from is un-sorted. When the list of views become large it becomes difficult to locate the desired view. I believe that usability is enhanced greatly by simply sorting these by name.
Proposed Resolution
The function "views_get_views_as_options", which is used to retrieve the list of views, already supports sorting, so the attached one line patch simply adds the extra parameters to this function call to return the sorted list.
Remaining tasks
- review
User interface changes
Formatting only - select list of views to embed is sorted by view title.
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#1 | 2537814-1.patch | 652 bytes | robertwb |
Comments
Comment #1
robertwb CreditAttribution: robertwb commentedComment #2
robertwb CreditAttribution: robertwb commentedComment #3
robertwb CreditAttribution: robertwb commentedComment #4
dawehnerThank you, small steps towards a great experience are great!
Comment #6
jibranCan we please patch 8.x as well?
Comment #7
robertwb CreditAttribution: robertwb commentedSeems like a good idea to path d8, but I think maybe a separate issue should be made?
Comment #8
robertwb CreditAttribution: robertwb commentedCreated separate issue for d8. Patch on the way.
Comment #10
jibranCommitted ea5acc5 to 8.x-1.x
Thanks for the patch.