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.
Currently the only method for altering raw facet data is via the filter system, which is executed on a per-realm basis. It would be great to have a hook that alters facet data one right after it is returned from the server. The original idea stemmed from the discussion at #1302590: Allow filters to access the map.
Comment | File | Size | Author |
---|---|---|---|
#2 | facetapi-1304820-2.patch | 2.56 KB | cpliakas |
#1 | facetapi-1304820-1.patch | 2.49 KB | cpliakas |
Comments
Comment #1
cpliakas CreditAttribution: cpliakas commentedThe attached patch allows for an "alter callback" that is applied on a per-facet basis and is invoked right after data is returned be the query type plugin.
Comment #2
cpliakas CreditAttribution: cpliakas commentedHere is another patch that changes the "alter callbacks" key to an array so multiple altering functions can be applied to a facet.
Comment #3
cpliakas CreditAttribution: cpliakas commentedResolved in commit http://drupalcode.org/project/facetapi.git/commit/aa96231.
Comment #4
cpliakas CreditAttribution: cpliakas commented