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.
In Genesis Jeff added a customized & more accessible advanced search form in the template.php file genesis_form_search_form_alter().
I'd like to have something like this added to Zen. This should work.
Comment | File | Size | Author |
---|---|---|---|
zen-accessible-search-1.patch | 2.96 KB | mgifford |
Comments
Comment #3
JohnAlbinI'll have to test this out. Thanks! :-)
Comment #4
fernandess CreditAttribution: fernandess commentedOkay, Going to test now.. :)
Comment #5
JohnAlbinfernandess++
Before and after screenshots would be great too!
Comment #6
JohnAlbinIf a module adds or alters the advanced search form, this form_alter would blow away all those modifications because it replaces the entire $form['advanced'] array with its own stuff.
In addition, the search modules floats the
.search-advanced .criterion
element to achieve a 2 or more column effect. This form_alter breaks that by wrapping each .criterion div in a fieldset. It should instead add the .criterion class to each fieldset.Comment #7
JohnAlbinAdding tag
Comment #8
mgiffordI'm guessing that was no April Fools comment back in #6.
@JohnAlbin want to mark this as Won't Fix?
Is there another way around this?
Or are you waiting for a re-roll with the .criterion class added to each fieldset?
Comment #9
JohnAlbin