function locale_languages_predefined_form
7.x locale.admin.inc | locale_languages_predefined_form( |
6.x locale.inc | locale_languages_predefined_form() |
Predefined language setup form.
Related topics
1 string reference to 'locale_languages_predefined_form'
- locale_languages_add_screen in drupal-6.x/
includes/ locale.inc - User interface for the language addition screen.
File
- drupal-6.x/
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;
}