You are here

function apachesolr_multilingual_environment_add_defaults in Apache Solr Multilingual 6.3

Same name and namespace in other branches
  1. 7 apachesolr_multilingual.module \apachesolr_multilingual_environment_add_defaults()
1 call to apachesolr_multilingual_environment_add_defaults()
apachesolr_multilingual_environment_load in ./apachesolr_multilingual.module
1 string reference to 'apachesolr_multilingual_environment_add_defaults'
apachesolr_multilingual_load_all_environments in ./apachesolr_multilingual.module

File

./apachesolr_multilingual.module, line 881
Multilingual search using Apache Solr.

Code

function apachesolr_multilingual_environment_add_defaults(&$environment) {
  if (!$environment) {
    $environment['conf'] = array();
  }
  $environment['conf'] += array(
    'apachesolr_multilingual_index_settings' => array(
      'apachesolr_multilingual_index' => 1,
      'apachesolr_multilingual_map_language_neutral' => APACHESOLR_MULTILINGUAL_LANGUAGE_UND,
      'apachesolr_multilingual_clir' => array(
        'apachesolr_multilingual_index_translations' => 0,
        'apachesolr_multilingual_index_unpublished_translations' => 0,
        'apachesolr_multilingual_index_term_translations' => 0,
      ),
    ),
  );
}