public function ApacheSolrFacetapiAdapter::suppressOutput in Apache Solr Search 7
Same name and namespace in other branches
- 8 plugins/facetapi/adapter.inc \ApacheSolrFacetapiAdapter::suppressOutput()
- 6.3 plugins/facetapi/adapter.inc \ApacheSolrFacetapiAdapter::suppressOutput()
Suppress output of the realm
Parameters
string $realm_name:
Return value
bool $flag Returns if it was suppressed or not
File
- plugins/
facetapi/ adapter.inc, line 73 - Classes used by the Facet API module.
Class
- ApacheSolrFacetapiAdapter
- Facet API adapter for the Apache Solr Search Integration module.
Code
public function suppressOutput($realm_name) {
$flag = FALSE;
if ($realm_name == 'block') {
$env_id = $this->info['instance'];
$flag = apachesolr_suppress_blocks($env_id);
}
return $flag || !$this
->searchExecuted();
}