1 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_validate(&$form, &$form_state)

Overrides views_plugin_pager::exposed_form_validate

File

core/modules/views/plugins/views_plugin_pager_full.inc, line 427
Definition of views_plugin_pager_full.

Class

views_plugin_pager_full
The plugin to handle full pager.

Code

function exposed_form_validate(&$form, &$form_state) {
  if (!empty($form_state['values']['offset']) && trim($form_state['values']['offset'])) {
    if (!is_numeric($form_state['values']['offset']) || $form_state['values']['offset'] < 0) {
      form_set_error('offset', t('Offset must be an number greather or equal than 0.'));
    }
  }
}