Facet API defines a lot of hooks, so it should implement hook_hook_info() so that modules can group their implementations in a MODULE.facetapi.inc include file.

Comments

cpliakas’s picture

If we separated out all hooks other than hook_facetapi_searcher_info() into a facetapi.facetapi.in file, we could prevent a couple hundred lines of code from loading on non-search pages.

cpliakas’s picture

Component: Contrib » Code
Status: Active » Needs review
StatusFileSize
new5.81 KB

We also had to omit hook_facetapi_facet_info(). We might be able to add this hook to the list if we cache the return value.

cpliakas’s picture

StatusFileSize
new9.87 KB

Added facetapi.facetapi.inc file to patch.

cpliakas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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