You are here

protected function SearchApiTransliteration::process in Search API 7

Function that is ultimately called for all text by the standard implementation, and does nothing by default.

Parameters

$value: The value to preprocess as a string. Can be manipulated directly, nothing has to be returned. Since this can be called for all value types, $value has to remain a string.

Overrides SearchApiAbstractProcessor::process

File

includes/processor_transliteration.inc, line 13
Contains SearchApiTransliteration.

Class

SearchApiTransliteration
Processor for making searches insensitive to accents and other non-ASCII characters.

Code

protected function process(&$value) {

  // We don't touch integers, NULL values or the like.
  if (is_string($value)) {
    $value = transliteration_get($value, '', language_default('language'));
  }
}