function google_appliance_static_response_cache in Google Search Appliance 6.2
Same name and namespace in other branches
- 5 google_appliance.module \google_appliance_static_response_cache()
It is important to hold on to the Google Appliance response object for the duration of the page request so that we can use it for things like the keymatch block
Stolen from apachesolr module
2 calls to google_appliance_static_response_cache()
- google_appliance_block in ./
google_appliance.module - Implementation of hook_block().
- _google_appliance_search in ./
google_appliance.module - Perform the search
File
- ./
google_appliance.module, line 1018 - Google Search Appliance (GSA) / Google Mini integration
Code
function &google_appliance_static_response_cache($response = NULL) {
static $_response;
if (!empty($response)) {
$_response = drupal_clone($response);
}
return $_response;
}