function dblog_filter_form_validate

Form validation handler for dblog_filter_form().

See also

dblog_filter_form_submit()

File

modules/dblog/dblog.admin.inc, line 372

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.'));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.