You are here

public function FacetapiAjaxWidgetSelect::init in Ajax facets 7

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/ajax_widget_select.inc \FacetapiAjaxWidgetSelect::init()

Overrides FacetapiWidgetCheckboxLinks::init().

File

plugins/facetapi/ajax_widget_select.inc, line 19
The facetapi_links and facetapi_checkbox_links widget plugin classes.

Class

FacetapiAjaxWidgetSelect
Widget that renders facets as a list of clickable links.

Code

public function init() {
  parent::init();
  drupal_add_js(array(
    'facetapi' => array(
      'ajax_select_box' => array(
        'default_value' => t('Select'),
      ),
    ),
  ), 'setting');
  ajax_facets_add_ajax_js($this->facet);
}