function apachesolr_panels_static_search_cache in Apache Solr Panels 6.3
Same name and namespace in other branches
- 6 apachesolr_panels.module \apachesolr_panels_static_search_cache()
- 7 apachesolr_panels.module \apachesolr_panels_static_search_cache()
Store/fetch information about the executed search.
The search will be stored by the "Search result" pane and fetched by the "Search form" and "Search information" panes.
3 calls to apachesolr_panels_static_search_cache()
- apachesolr_panels_apachesolr_form_content_type_render in plugins/
content_types/ apachesolr_form.inc - Render a search form for Apache Solr.
- apachesolr_panels_apachesolr_info_content_type_render in plugins/
content_types/ apachesolr_info.inc - Execute the search and render results.
- apachesolr_panels_search_execute in ./
apachesolr_panels.module - Execute a Solr search.
File
- ./
apachesolr_panels.module, line 115 - Integrates Apache Solr Search with Panels.
Code
function apachesolr_panels_static_search_cache($search = NULL) {
static $_search = NULL;
if (!empty($search)) {
$_search = array(
'keys' => '',
'filters' => '',
'rows' => '',
'env_id' => '',
'sort' => '',
'path' => '',
'page' => 0,
);
$_search = array_merge($_search, $search);
}
return $_search;
}