You are here

function shs_views_plugins_filter_alter in Simple hierarchical select 2.0.x

Same name and namespace in other branches
  1. 8 shs.module \shs_views_plugins_filter_alter()

Implements hook_views_plugins_filter_alter().

File

./shs.module, line 131
Main functions and methods for the "Simple hierarchical select" module.

Code

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