function apachesolr_has_searched in Apache Solr Search 6.2
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_has_searched()
- 5.2 apachesolr.module \apachesolr_has_searched()
- 5 apachesolr.module \apachesolr_has_searched()
- 6.3 apachesolr.module \apachesolr_has_searched()
- 6 apachesolr.module \apachesolr_has_searched()
- 7 apachesolr.module \apachesolr_has_searched()
Semaphore that indicates whether a search has been done. Blocks use this later to decide whether they should load or not.
Parameters
$searched: A boolean indicating whether a search has been executed.
Return value
TRUE if a search has been executed, FALSE otherwise.
6 calls to apachesolr_has_searched()
- apachesolr_block in ./
apachesolr.module - Implementation of hook_block().
- apachesolr_date_block in contrib/
apachesolr_date/ apachesolr_date.module - Implementation of hook_block().
- apachesolr_search_block in ./
apachesolr_search.module - Implementation of hook_block().
- apachesolr_search_browse in ./
apachesolr_search.module - Execute an empty search (match all documents) and show a listing of all enabled facets.
- apachesolr_search_execute in ./
apachesolr_search.module - Execute a search results based on keyword, filter, and sort strings.
File
- ./
apachesolr.module, line 1577 - Integration with the Apache Solr search application.
Code
function apachesolr_has_searched($searched = NULL) {
static $_searched = FALSE;
if (is_bool($searched)) {
$_searched = $searched;
}
return $_searched;
}