You are here

function theme_ajax_facets_select in Ajax facets 7.3

Fork of function theme_select(). Implemented due the issue https://www.drupal.org/node/104715.

1 theme call to theme_ajax_facets_select()
FacetapiAjaxWidgetSelect::execute in plugins/facetapi/ajax_widget_select.inc
Implements FacetapiWidget::execute().

File

./ajax_facets.module, line 400

Code

function theme_ajax_facets_select($variables) {
  $element = $variables['element'];
  element_set_attributes($element, [
    'id',
    'name',
    'size',
  ]);
  _form_set_class($element, [
    'form-select',
  ]);
  return '<select' . drupal_attributes($element['#attributes']) . '>' . ajax_facets_form_select_options($element) . '</select>';
}