public function FacetapiWidgetCheckboxLinks::init in Facet API 7
Same name and namespace in other branches
- 6.3 plugins/facetapi/widget_links.inc \FacetapiWidgetCheckboxLinks::init()
- 7.2 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 297 - 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');
}