function i18nviews_handler_filter_taxonomy_term_name::op_equal in Internationalization Views 7.3
Overrides views_handler_filter_string::op_equal
File
- includes/
i18nviews_handler_filter_taxonomy_term_name.inc, line 9
Class
- i18nviews_handler_filter_taxonomy_term_name
- @todo: In general a string filter for i18n currently only supports equalility, because joining tables is hard.
Code
function op_equal($field) {
// Change the input of the word to the english source term.
$source = i18nviews_locale_source($this->value, 'taxonomy');
if (isset($source->source)) {
$this->value = $source->source;
}
parent::op_equal($field);
}