function views_handler_area_spellcheck::pre_query in Search API Spellcheck 7
Run before the view is built.
This gives all the handlers some time to set up before any handler has been fully run.
Overrides views_handler::pre_query
File
- views/
views_handler_area_spellcheck.inc, line 12 - Views Search API area handler
Class
- views_handler_area_spellcheck
- Area handlers are available to be placed in a views header and footer. Spelling suggestions will only display if some are returned with the results.
Code
function pre_query() {
$this->query
->setOption('search_api_spellcheck', TRUE);
}