You are here

function template_preprocess_bef_checkboxes in Better Exposed Filters 8.3

Same name and namespace in other branches
  1. 8.5 includes/better_exposed_filters.theme.inc \template_preprocess_bef_checkboxes()
  2. 8.4 includes/better_exposed_filters.theme.inc \template_preprocess_bef_checkboxes()

File

./better_exposed_filters.module, line 97
Allows the use of checkboxes, radio buttons or hidden fields for exposed Views filters.

Code

function template_preprocess_bef_checkboxes(&$variables) {
  $variables['children'] = Element::children($variables['element']);
  $variables['hasSelectAllNone'] = !empty($variables['element']['#bef_select_all_none']) ? TRUE : FALSE;
  $variables['hasSelectAllNoneNested'] = !empty($variables['element']['#bef_select_all_none_nested']) ? TRUE : FALSE;
  _bef_preprocess_nested_elements($variables);
}