1 locale.admin.inc language_negotiation_configure_session_form($form, &$form_state)

The URL language provider configuration form.

See also

language_negotiation_configure_session_form_submit()

File

core/modules/locale/locale.admin.inc, line 291
Admin page callbacks for the Locale module.

Code

function language_negotiation_configure_session_form($form, &$form_state) {
  $form['language_negotiation_session_parameter'] = array(
    '#title' => t('Request/session parameter'),
    '#type' => 'textfield',
    '#default_value' => config_get('locale.settings', 'language_negotiation_session_parameter'),
    '#description' => t('Name of the request/session parameter used to determine the desired language.'),
  );

  $form_state['redirect'] = 'admin/config/regional/language/detection';

  $form['actions']['#type'] = 'actions';
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  return $form;
}