You are here

function shs_chosen_views_plugins_filter_alter in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x modules/shs_chosen/shs_chosen.module \shs_chosen_views_plugins_filter_alter()

Implements hook_views_plugins_filter_alter().

File

modules/shs_chosen/shs_chosen.module, line 60
Main functions for the "Simple hierarchical select: Chosen" module.

Code

function shs_chosen_views_plugins_filter_alter(array &$plugins) {
  foreach ([
    'taxonomy_index_tid',
    'taxonomy_index_tid_depth',
  ] as $plugin) {
    if (isset($plugins[$plugin])) {
      $plugins['shs_' . $plugin]['class'] = $plugins['shs_chosen_' . $plugin]['class'];
      $plugins[$plugin]['class'] = $plugins['shs_' . $plugin]['class'];
    }
  }
}