function _acquia_search_get_default_facets in Acquia Search 6
Helper function for hook_install().
2 calls to _acquia_search_get_default_facets()
- AcquiaSearchTest::testDefaultBlocksEnable in tests/
acquia_search.test - acquia_search_install in ./
acquia_search.install - Implementation of hook_install().
File
- ./
acquia_search.install, line 116
Code
function _acquia_search_get_default_facets() {
$default_enabled_facets['apachesolr_search']['type'] = 'type';
$default_enabled_facets['apachesolr_search']['uid'] = 'uid';
if (module_exists('taxonomy')) {
$vocabs = taxonomy_get_vocabularies();
foreach ($vocabs as $vid => $vocab) {
$delta = 'imfield_vid_' . $vid;
$default_enabled_facets['apachesolr_search'][$delta] = $delta;
}
}
return $default_enabled_facets;
}