You are here

protected function SearchApiIgnoreCase::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_ignore_case.inc, line 13
Contains SearchApiIgnoreCase.

Class

SearchApiIgnoreCase
Processor for making searches case-insensitive.

Code

protected function process(&$value) {

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