diff --git a/better_exposed_filters.theme b/better_exposed_filters.theme old mode 100644 new mode 100755 index 8b59d99..bc3a1eb --- a/better_exposed_filters.theme +++ b/better_exposed_filters.theme @@ -505,6 +505,9 @@ function theme_select_as_links($vars) { // Go through each filter option and build the appropriate link or plain text. foreach ($element['#options'] as $option => $elem) { + if (!empty($element['#hidden_options'][$option])) { + continue; + } // Check for Taxonomy-based filters. if (is_object($elem)) { $slice = array_slice($elem->option, 0, 1, TRUE); @@ -532,6 +535,7 @@ function theme_select_as_links($vars) { } foreach ($element_set as $key => $value) { + $element_output = ''; // Custom ID for each link based on the