processor_transliteration.inc 389 B

123456789101112131415
  1. <?php
  2. /**
  3. * Processor for making searches insensitive to accents and other non-ASCII characters.
  4. */
  5. class SearchApiTransliteration extends SearchApiAbstractProcessor {
  6. protected function process(&$value) {
  7. // We don't touch integers, NULL values or the like.
  8. if (is_string($value)) {
  9. $value = transliteration_get($value, '', language_default('language'));
  10. }
  11. }
  12. }