function apachesolr_get_enabled_facets in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 apachesolr.module \apachesolr_get_enabled_facets()
- 6 apachesolr.module \apachesolr_get_enabled_facets()
Return the enabled facets from the specified block array.
Parameters
$module: (optional) The name of the module
Return value
array An array consisting of info for facets that have been enabled for the specified module, or all enabled facets.
9 calls to apachesolr_get_enabled_facets()
- apachesolr_date_apachesolr_prepare_query in contrib/
apachesolr_date/ apachesolr_date.module - Implementation of hook_apachesolr_prepare_query(). Adds sorts for enabled date facets to the sorting block.
- apachesolr_date_block in contrib/
apachesolr_date/ apachesolr_date.module - Implementation of hook_block().
- apachesolr_enabled_facets_form in ./
apachesolr.admin.inc - Creates the form that allows the user to select which facets will be enabled.
- apachesolr_form_block_admin_configure_alter in ./
apachesolr.module - Implementation of hook_form_[form_id]_alter().
- apachesolr_js in ./
apachesolr.module
File
- ./
apachesolr.module, line 743 - Integration with the Apache Solr search application.
Code
function apachesolr_get_enabled_facets($module = NULL) {
$enabled = variable_get('apachesolr_enabled_facets', array());
if (isset($module)) {
return isset($enabled[$module]) ? $enabled[$module] : array();
}
return $enabled;
}