You are here

function search_api_solr_update_8002 in Search API Solr 8

Same name and namespace in other branches
  1. 8.3 search_api_solr.install \search_api_solr_update_8002()
  2. 8.2 search_api_solr.install \search_api_solr_update_8002()
  3. 4.x search_api_solr.install \search_api_solr_update_8002()

Convert http_user and http_pass to username and password config for Solarium.

File

./search_api_solr.install, line 189

Code

function search_api_solr_update_8002() {
  foreach (search_api_solr_update_helper_get_backend_configs() as $server_name => $backend_config) {
    $backend_config['username'] = $backend_config['http_user'];
    $backend_config['password'] = $backend_config['http_pass'];
    unset($backend_config['http_user'], $backend_config['http_pass']);
    search_api_solr_update_helper_save_backend_config($server_name, $backend_config);
  }
}