1 dblog.admin.inc dblog_filter_form_validate($form, &$form_state)

Form validation handler for dblog_filter_form().

See also

dblog_filter_form_submit()

File

core/modules/dblog/dblog.admin.inc, line 383
Admin page callbacks for the Database Logging module.

Code

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