You are here

function l10n_update_status_form_validate in Localization update 7.2

Form validation handler for locale_translation_status_form().

File

./l10n_update.admin.inc, line 185
Admin settings and update page.

Code

function l10n_update_status_form_validate($form, &$form_state) {

  // Check if a language has been selected. 'tableselect' doesn't.
  if (!array_filter($form_state['values']['langcodes'])) {
    form_set_error('', t('Select a language to update.'));
  }
}