1 locale.admin.inc | language_negotiation_configure_form() |
Builds the configuration form for language negotiation.
File
- core/
modules/ locale/ locale.admin.inc, line 13 - Admin page callbacks for the Locale module.
Code
function language_negotiation_configure_form() {
$form = array(
'#submit' => array('language_negotiation_configure_form_submit'),
'#theme' => 'language_negotiation_configure_form',
'#language_types' => language_types_get_configurable(),
'#language_types_info' => language_types_info(),
'#language_providers' => language_negotiation_info(),
);
foreach ($form['#language_types'] as $type) {
language_negotiation_configure_form_table($form, $type);
}
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save settings'),
);
return $form;
}