function views_form_views_form_validate
Same name in other branches
- 6.x-3.x views.module \views_form_views_form_validate()
Validate handler for the first step of the views form.
Calls any existing views_form_validate functions located on the views fields.
1 string reference to 'views_form_views_form_validate'
- views_form_views_form in ./
views.module - Callback for the main step of a Views form.
File
-
./
views.module, line 2066
Code
function views_form_views_form_validate($form, &$form_state) {
$view = $form_state['build_info']['args'][0];
// Call the validation method on every field handler that has it.
foreach ($view->field as $field) {
if (method_exists($field, 'views_form_validate')) {
$field->views_form_validate($form, $form_state);
}
}
// Call the validate method on every area handler that has it.
foreach (array(
'header',
'footer',
) as $area) {
foreach ($view->{$area} as $area_handler) {
if (method_exists($area_handler, 'views_form_validate')) {
$area_handler->views_form_validate($form, $form_state);
}
}
}
}