function synonyms_views_plugins_alter in Synonyms 7
Implements hook_views_plugins_alter().
File
- views/
synonyms.views.inc, line 39 - Views integration of Synonyms module.
Code
function synonyms_views_plugins_alter(&$plugins) {
if (module_exists('taxonomy')) {
// Replace default taxonomy term argument validator with our extended
// version, which can also handle a term synonym as an argument.
$plugins['argument validator']['taxonomy_term']['handler'] = 'synonyms_views_plugin_argument_validate_taxonomy_term';
}
}