function viewsSearchQuery::condition_replace_string

File

modules/search/views_handler_filter_search.inc, line 249

Class

viewsSearchQuery
Extends the core SearchQuery.

Code

public function condition_replace_string($search, $replace, &$condition) {
    if ($condition['field'] instanceof DatabaseCondition) {
        $conditions =& $condition['field']->conditions();
        foreach ($conditions as $key => &$subcondition) {
            if (is_numeric($key)) {
                $this->condition_replace_string($search, $replace, $subcondition);
            }
        }
        unset($subcondition);
    }
    else {
        $condition['field'] = str_replace($search, $replace, $condition['field']);
    }
}