You are here

function apachesolr_set_default_environment in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.module \apachesolr_set_default_environment()
  2. 6.3 apachesolr.module \apachesolr_set_default_environment()

Set the default environment and let other modules know about the change.

1 call to apachesolr_set_default_environment()
apachesolr_environment_edit_submit in ./apachesolr.admin.inc
Submit handler for the environment edit page

File

./apachesolr.module, line 1151
Integration with the Apache Solr search application.

Code

function apachesolr_set_default_environment($env_id) {
  $old_env_id = variable_get('apachesolr_default_environment', 'solr');
  variable_set('apachesolr_default_environment', $env_id);
  module_invoke_all('apachesolr_default_environment', $env_id, $old_env_id);
}