function apachesolr_default_environment in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr.module \apachesolr_default_environment()
- 7 apachesolr.module \apachesolr_default_environment()
Get or set the default environment ID for the current page.
47 calls to apachesolr_default_environment()
- AbstractDrupalSolrOnlineWebTestCase::setUpSolr in tests/
solr_index_and_search.test - apachesolr_bias_settings_page in ./
apachesolr_search.admin.inc - Menu callback - Bias settings form.
- apachesolr_config_file in ./
apachesolr.admin.inc - Page callback to show one conf file.
- apachesolr_config_files_overview in ./
apachesolr.admin.inc - Page callback to show available conf files.
- apachesolr_drush_solr_delete_index in drush/
apachesolr.drush.inc - Selectively delete content from the apachesolr index.
4 string references to 'apachesolr_default_environment'
- apachesolr_set_default_environment in ./
apachesolr.module - Set the default environment and let other modules know about the change.
- apachesolr_uninstall in ./
apachesolr.install - Implements hook_uninstall().
- apachesolr_update_7007 in ./
apachesolr.install - Rename tables to make them more generic.
- apachesolr_update_7012 in ./
apachesolr.install - Rename some variables and update the database tables
File
- ./
apachesolr.module, line 1125 - Integration with the Apache Solr search application.
Code
function apachesolr_default_environment($env_id = NULL) {
$default_env_id =& drupal_static(__FUNCTION__, NULL);
if (isset($env_id)) {
$default_env_id = $env_id;
}
if (empty($default_env_id)) {
$default_env_id = variable_get('apachesolr_default_environment', 'solr');
}
return $default_env_id;
}