You are here

function shs_views_plugins_filter_alter in Simple hierarchical select 8

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

Implements hook_views_plugins_filter_alter().

File

./shs.module, line 140
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'];
    }
  }
}