function locale_translation_filter_form_validate

locale_translation_filter_form_validate($form, &$form_state)

Validate result from locale translation filter form.

Related topics

File

modules/locale/locale.admin.inc, line 897
Administration functions for locale.module.

Code

function locale_translation_filter_form_validate($form, &$form_state) {
  if ($form_state['values']['op'] == t('Filter') && empty($form_state['values']['language']) && empty($form_state['values']['group'])) {
    form_set_error('type', t('You must select something to filter by.'));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!locale!locale.admin.inc/function/locale_translation_filter_form_validate/7.x