You are here

function elasticsearch_watchdog_filter_form_validate in Elasticsearch Connector 7.5

Same name and namespace in other branches
  1. 7 modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc \elasticsearch_watchdog_filter_form_validate()
  2. 7.2 modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc \elasticsearch_watchdog_filter_form_validate()

Form validation handler for elasticsearch_watchdog_filter_form().

See also

elasticsearch_watchdog_filter_form_submit()

File

modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc, line 644
Created on Jan 06, 2014

Code

function elasticsearch_watchdog_filter_form_validate($form, &$form_state) {
  if ($form_state['values']['op'] == t('Filter') && empty($form_state['values']['type']) && empty($form_state['values']['severity']) && empty($form_state['values']['domain']) && empty($form_state['values']['username']) && empty($form_state['values']['full_massage'])) {
    form_set_error('type', t('You must select something to filter by.'));
  }
}