You are here

function panopoly_search_default_search_api_server_alter in Panopoly Search 7

Implements hook_default_search_api_server_alter().

File

./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;
    }
  }
}