You are here

function facetapi_filters_load in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 facetapi.module \facetapi_filters_load()
  2. 7 facetapi.module \facetapi_filters_load()

Returns array of filter options available to the facet.

Parameters

$facet_name: The machine readable name of the facet.

$searcher: The machine readable name of the searcher.

Return value

array An array of FacetapiFilter objects, FALSE if no plugins.

1 call to facetapi_filters_load()
facetapi_realm_settings_form in ./facetapi.admin.inc
Form constructor for the realm settings form.

File

./facetapi.module, line 394
An abstracted facet API that can be used by various search backends.

Code

function facetapi_filters_load($facet_name, $searcher) {
  $filters = array(
    'plugins' => array(),
  );
  if ($filters['facet'] = facetapi_facet_load($facet_name, $searcher)) {
    $filters['plugins'] = facetapi_get_filters($filters['facet']);
  }
  return $filters['plugins'] ? $filters : FALSE;
}