You are here

public function FacetapiWidgetCheckboxLinks::init in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/widget_links.inc \FacetapiWidgetCheckboxLinks::init()
  2. 7 plugins/facetapi/widget_links.inc \FacetapiWidgetCheckboxLinks::init()

Overrides FacetapiWidgetLinks::init().

Adds additional JavaScript settings and CSS.

Overrides FacetapiWidget::init

File

plugins/facetapi/widget_links.inc, line 250
The facetapi_links and facetapi_checkbox_links widget plugin classes.

Class

FacetapiWidgetCheckboxLinks
Widget that renders facets as a list of clickable checkboxes.

Code

public function init() {
  parent::init();
  $this->jsSettings['makeCheckboxes'] = 1;
  drupal_add_css(drupal_get_path('module', 'facetapi') . '/facetapi.css');
}