You are here

function text_scanner_query_where in Search and Replace Scanner 7

Implements hook_scanner_query_where().

File

./scanner.module, line 1411
Search and Replace Scanner - works on all nodes text content.

Code

function text_scanner_query_where(&$or, $table, $field, $where, $binary) {

  // Performed on behalf of text.module.
  $field_summary = rtrim($field, '_value') . '_summary';
  if (db_field_exists($table, $field_summary)) {
    $or
      ->condition('t.' . $field_summary, $where, 'REGEXP' . $binary);
  }
}