function panopoly_search_default_search_api_server_alter in Panopoly 7
Implements hook_default_search_api_server_alter().
File
- modules/
panopoly/ panopoly_search/ panopoly_search.module, line 61
Code
function panopoly_search_default_search_api_server_alter(&$items) {
if (isset($items['solr_server'])) {
// Hack to allow 'options' and 'enabled' to be changed without the Feature
// becoming overridden (will still be overridden in the Search API admin).
if ($solr_server = search_api_server_load('solr_server')) {
$items['solr_server']->options = $solr_server->options;
$items['solr_server']->enabled = $solr_server->enabled;
}
}
}