Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The use of drupal_attributes() within apachesolr_l() implies that attributes that can have multiple values (such as 'class') should be arrays. By providing a string, developers are unable to extend the classes on that link via preprocessing.
Comment | File | Size | Author |
---|---|---|---|
#2 | apachesolr-2153347-sort_link_class_array-2.patch | 1.08 KB | dooug |
#1 | apachesolr-sort-link-class-array-2153347-1.patch | 667 bytes | kaidjohnson |
Comments
Comment #1
kaidjohnson CreditAttribution: kaidjohnson commentedProposed patch...
Comment #2
dooug CreditAttribution: dooug at Promet Source commentedRe-rolled patch for latest 7.x-1.x.
Comment #3
dooug CreditAttribution: dooug at Promet Source commentedThis aligns with coding best practice by using arrays for class attributes, making them more easily modifiable by other code. RTBC++
Comment #5
japerry