function locale_languages_custom_form in Drupal 6
Same name and namespace in other branches
- 7 modules/locale/locale.admin.inc \locale_languages_custom_form()
Custom language addition form.
Related topics
1 string reference to 'locale_languages_custom_form'
- locale_languages_add_screen in includes/
locale.inc - User interface for the language addition screen.
File
- includes/
locale.inc, line 175 - Administration functions for locale.module.
Code
function locale_languages_custom_form() {
$form = array();
$form['custom language'] = array(
'#type' => 'fieldset',
'#title' => t('Custom language'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
_locale_languages_common_controls($form['custom language']);
$form['custom language']['submit'] = array(
'#type' => 'submit',
'#value' => t('Add custom language'),
);
// Reuse the validation and submit functions of the predefined language setup form.
$form['#submit'][] = 'locale_languages_predefined_form_submit';
$form['#validate'][] = 'locale_languages_predefined_form_validate';
return $form;
}