function fuzzysearch_static_search_query in Fuzzy Search 7
Store the unexecuted search query for reusing it when building the excerpt.
The query is cloned when this function is called.
2 calls to fuzzysearch_static_search_query()
- FuzzySearchService::createKeysQuery in includes/
service.inc - Helper method for creating a SELECT query for given search keys.
- fuzzysearch_build_excerpt in ./
fuzzysearch.module - Fuzzysearch build excerpt.
File
- ./
fuzzysearch.module, line 256 - Fuzzysearch module.
Code
function fuzzysearch_static_search_query($query = NULL) {
$clone = drupal_static('fuzzy_query', $query);
if (empty($clone)) {
$clone = $query;
}
return $clone;
}