function locale_languages_custom_form

7.x locale.admin.inc locale_languages_custom_form($form)
6.x locale.inc locale_languages_custom_form()

Custom language addition form.

Related topics

1 string reference to 'locale_languages_custom_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 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;
}