You are here

function taxonomy_machine_name_views_plugins_alter in Taxonomy Machine Name 7

Implements hook_views_plugins_alter().

File

./taxonomy_machine_name.views.inc, line 34
Taxonomy Machine Name Views Module File.

Code

function taxonomy_machine_name_views_plugins_alter(&$plugins) {
  if (isset($plugins['argument validator']['taxonomy_term']['handler'])) {
    $handler = 'views_plugin_argument_validate_taxonomy_term_machine_name';
    $path = drupal_get_path('module', 'taxonomy_machine_name') . '/views/modules/taxonomy';
    $file = 'views_plugin_argument_validate_taxonomy_term_machine_name.inc';
    $plugins['argument validator']['taxonomy_term']['handler'] = $handler;
    $plugins['argument validator']['taxonomy_term']['path'] = $path;
    $plugins['argument validator']['taxonomy_term']['file'] = $file;
    $plugins['argument validator']['taxonomy_term']['module'] = 'taxonomy_machine_name';
  }
}