You are here

function apachesolr_facetcount_save in Apache Solr Search 5

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_facetcount_save()
  2. 6 apachesolr.module \apachesolr_facetcount_save()
  3. 6.2 apachesolr.module \apachesolr_facetcount_save()

Used by the 'save' $op of hook_block so that modules can generically set facet limits on their blocks.

3 calls to apachesolr_facetcount_save()
apachesolr_block in ./apachesolr.module
Implementation of hook_block().
apachesolr_multisitesearch_block in contrib/apachesolr_multisitesearch/apachesolr_multisitesearch.module
Implementation of hook_block().
apachesolr_search_block in ./apachesolr_search.module
Implementation of hook_block().

File

./apachesolr.module, line 672
Integration with the Apache Solr search application.

Code

function apachesolr_facetcount_save($delta, $edit) {

  // Save query limits
  $facet_query_limits = variable_get('apachesolr_facet_query_limits', array());
  $facet_query_limits[$delta] = intval($edit['apachesolr_facet_query_limit']);
  variable_set('apachesolr_facet_query_limits', $facet_query_limits);
}