You are here

function locale_languages_configure_form in Drupal 7

Same name and namespace in other branches
  1. 6 includes/locale.inc \locale_languages_configure_form()

Setting for language negotiation options

Related topics

1 string reference to 'locale_languages_configure_form'
locale_menu in modules/locale/locale.module
Implements hook_menu().

File

modules/locale/locale.admin.inc, line 498
Administration functions for locale.module.

Code

function locale_languages_configure_form() {
  include_once DRUPAL_ROOT . '/includes/language.inc';
  $form = array(
    '#submit' => array(
      'locale_languages_configure_form_submit',
    ),
    '#theme' => 'locale_languages_configure_form',
    '#language_types' => language_types_configurable(FALSE),
    '#language_types_info' => language_types_info(),
    '#language_providers' => language_negotiation_info(),
  );
  foreach ($form['#language_types'] as $type) {
    _locale_languages_configure_form_language_table($form, $type);
  }
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save settings'),
  );
  return $form;
}