You are here

function apachesolr_multilingual_search_page_settings_add_defaults in Apache Solr Multilingual 7

Same name and namespace in other branches
  1. 6.3 apachesolr_multilingual.module \apachesolr_multilingual_search_page_settings_add_defaults()
4 calls to apachesolr_multilingual_search_page_settings_add_defaults()
apachesolr_multilingual_apachesolr_query_alter in ./apachesolr_multilingual.module
Implements hook_apachesolr_modify_query().
apachesolr_multilingual_form_apachesolr_search_custom_page_search_form_alter in ./apachesolr_multilingual.module
Implements hook_form_search_form_alter().
apachesolr_multilingual_form_apachesolr_search_page_settings_form_alter in ./apachesolr_multilingual.module
Implements hook_form_alter().
apachesolr_multilingual_form_block_admin_configure_alter in ./apachesolr_multilingual.module
Add multilingual settings to MLT blocks.

File

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

Code

function apachesolr_multilingual_search_page_settings_add_defaults(&$search_page_settings) {
  if (!$search_page_settings) {
    $search_page_settings = array();
  }

  // Add multilingual defaults.
  $search_page_settings += array(
    'apachesolr_multilingual_auto_language_filter' => 1,
    'apachesolr_multilingual_auto_language_filter_detachable' => 0,
    'apachesolr_multilingual_show_language_undefined_results' => 0,
  );
}