Currently you can theme the active links of a current search block by overriding theme_facetapi_link_active, however the search keys are not themeable, they just run through check_plain().
It would be nice if they were themeable.
Then it would be possible to do something like run it through theme('facetapi_link_active') so it behaves like other facets.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | themable-keys-1514304-3.patch | 2.16 KB | cpliakas |
| #1 | facetapi-themeable_keys_facet-1514304-1.patch | 2.09 KB | rooby |
Comments
Comment #1
rooby commentedHere is a patch to add this.
Comment #2
cpliakas commentedThis makes sense to me! I'll test it in the next couple of days unless someone wants to beat me to it (which would be great).
Thanks,
Chris
Comment #3
cpliakas commentedPatch works as advertised. Re-rolling with a minor code style change to eliminate two calls to getSearchKeys(), and also changing theme function from "current_search_search_keys" to just "current_search_keys". It seems inline with other theme functions such as "current_search_text", and I always opt for shorter names :-).
Thanks for the contribution, and sorry this slipped my radar.
Chris
Comment #4
cpliakas commentedCommitted to all active versions of Facet API.
Comment #5
rooby commentedGreat, thank you.