function locale_languages_predefined_form in Drupal 6
Same name and namespace in other branches
- 7 modules/locale/locale.admin.inc \locale_languages_predefined_form()
Predefined language setup form.
Related topics
1 string reference to 'locale_languages_predefined_form'
- locale_languages_add_screen in includes/
locale.inc - User interface for the language addition screen.
File
- includes/
locale.inc, line 155 - Administration functions for locale.module.
Code
function locale_languages_predefined_form() {
$predefined = _locale_prepare_predefined_list();
$form = array();
$form['language list'] = array(
'#type' => 'fieldset',
'#title' => t('Predefined language'),
'#collapsible' => TRUE,
);
$form['language list']['langcode'] = array(
'#type' => 'select',
'#title' => t('Language name'),
'#default_value' => key($predefined),
'#options' => $predefined,
'#description' => t('Select the desired language and click the <em>Add language</em> button. (Use the <em>Custom language</em> options if your desired language does not appear in this list.)'),
);
$form['language list']['submit'] = array(
'#type' => 'submit',
'#value' => t('Add language'),
);
return $form;
}