public function SearchApiRangesWidgetCheckboxLinks::init in Search API ranges 7
Overrides SearchApiRangesWidgetLinks::init().
Adds additional JavaScript settings and CSS.
File
- plugins/
facetapi/ widget_links.inc, line 190 - Widgets for facets rendered as test link ranges.
Class
- SearchApiRangesWidgetCheckboxLinks
- 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');
}