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-7.x/modules/locale/locale.admin.inc
User interface for the language addition screen.

File

drupal-7.x/modules/locale/locale.admin.inc, line 210
Administration functions for locale.module.

Code

function locale_languages_custom_form($form) {
  $form['custom language'] = array('#type' => 'fieldset',
    '#title' => t('Custom language'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  _locale_languages_common_controls($form['custom language']);
  $form['custom language']['actions'] = array('#type' => 'actions');
  $form['custom language']['actions']['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;
}