0

I'm using "Facet API" and "Search facets" modules on Drupal 7. I'm trying to change the values of the active items' tokens provided in the search blocks (especially the [facetapi_active:facet-label] token) , I tried to use theenter image description here "Facet API Bonus" module and the function hook_facet_items_alter with no success, could someone help me? Thanks!

1 Answer 1

1

I didn't need the "Facet API Bonus" module, I wrote a module to implement THEME_facetapi_link_active (included in facetapi.theme.inc) then i simply replaced the label's text using the function str_replace like this:

$variables['text']=str_replace("Price » Amount (decimal)","Price",$variables['text']);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.