locale_languages_configure_form

6 locale.inc locale_languages_configure_form()
7 locale.admin.inc locale_languages_configure_form()

Setting for language negotiation options

Related topics

1 string reference to 'locale_languages_configure_form'

File

includes/locale.inc, line 457
Administration functions for locale.module.

Code

function locale_languages_configure_form() {
  $form['language_negotiation'] = array(
    '#title' => t('Language negotiation'), 
    '#type' => 'radios', 
    '#options' => array(
      LANGUAGE_NEGOTIATION_NONE => t('None.'), 
      LANGUAGE_NEGOTIATION_PATH_DEFAULT => t('Path prefix only.'), 
      LANGUAGE_NEGOTIATION_PATH => t('Path prefix with language fallback.'), 
      LANGUAGE_NEGOTIATION_DOMAIN => t('Domain name only.'),
    ), 
    '#default_value' => variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE), 
    '#description' => t("Select the mechanism used to determine your site's presentation language. <strong>Modifying this setting may break all incoming URLs and should be used with caution in a production environment.</strong>"),
  );
  $form['submit'] = array(
    '#type' => 'submit', 
    '#value' => t('Save settings'),
  );
  return $form;
}
Login or register to post comments