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.

Comments

rooby’s picture

Status: Active » Needs review
StatusFileSize
new2.09 KB

Here is a patch to add this.

cpliakas’s picture

This 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

cpliakas’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.16 KB

Patch 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

cpliakas’s picture

Status: Reviewed & tested by the community » Fixed
rooby’s picture

Great, thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.