1 views.module | views_exposed_form_validate(&$form, &$form_state) |
Validate handler for exposed filters
File
- core/
modules/ views/ views.module, line 1795 - Primarily Backdrop hooks and global API functions to manipulate views.
Code
function views_exposed_form_validate(&$form, &$form_state) {
foreach (array('field', 'filter') as $type) {
$handlers = &$form_state['view']->$type;
foreach ($handlers as $key => $handler) {
$handlers[$key]->exposed_validate($form, $form_state);
}
}
$exposed_form_plugin = $form_state['exposed_form_plugin'];
$exposed_form_plugin->exposed_form_validate($form, $form_state);
}