synonyms.views.inc 466 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * @file
  4. * Views integration of Synonyms module.
  5. */
  6. /**
  7. * Implements hook_views_plugins_alter().
  8. *
  9. * @see hook_views_plugins_alter()
  10. */
  11. function synonyms_views_plugins_alter(&$plugins) {
  12. // Replace default taxonomy term argument validator with our extended version,
  13. // which can also handle a term synonym as an argument.
  14. $plugins['argument validator']['taxonomy_term']['handler'] = 'synonyms_views_plugin_argument_validate_taxonomy_term';
  15. }