locale_translation_filter_form_validate

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部