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.
Currently, it's impossible to change the sort type to use links or radios if don't expose both the sort field and the sort order. This is because of the following in exposed_form_alter():
if (isset($settings['sort']) && !empty($form['sort_by']) && !empty($form['sort_order'])) {
That's a problem for me as I don't wish to expose sort order, just sort field. It's also a bug because the interface doesn't tell you that it won't work.
Patch to follow...
Comment | File | Size | Author |
---|---|---|---|
#1 | 2050021-sort-order-1.patch | 2.92 KB | Angry Dan |
Comments
Comment #1
Angry Dan CreditAttribution: Angry Dan commentedSee attached patch.
Comment #2
mikeker CreditAttribution: mikeker commentedThank you for the patch, however it doesn't apply against the latest -dev.
Comment #3
Neslee Canil PintoHi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).