function transliteration_search_preprocess in Transliteration 6.3
Same name and namespace in other branches
- 7.3 transliteration.module \transliteration_search_preprocess()
Implements hook_search_preprocess().
Transliterates text added to the search index and user submitted search keywords.
File
- ./
transliteration.module, line 182 - Converts non-latin text to US-ASCII and sanitizes file names.
Code
function transliteration_search_preprocess($text) {
if (variable_get('transliteration_search', TRUE)) {
return transliteration_get($text, '', language_default('language'));
}
return $text;
}