function locale_add_language_form in Drupal 5
2 string references to 'locale_add_language_form'
- locale_custom_language_form in includes/
locale.inc - _locale_admin_manage_add_screen in includes/
locale.inc - User interface for the language addition screen.
File
- includes/
locale.inc, line 138 - Admin-related functions for locale.module.
Code
function locale_add_language_form() {
$isocodes = _locale_prepare_iso_list();
$form = array();
$form['language list'] = array(
'#type' => 'fieldset',
'#title' => t('Language list'),
'#collapsible' => TRUE,
);
$form['language list']['langcode'] = array(
'#type' => 'select',
'#title' => t('Language name'),
'#default_value' => key($isocodes),
'#options' => $isocodes,
'#description' => t('Select your language here, or add it below, if you are unable to find it.'),
);
$form['language list']['submit'] = array(
'#type' => 'submit',
'#value' => t('Add language'),
);
return $form;
}