1 views_ui.admin.inc views_ui_wizard_form_validate($form, &$form_state)

Validate the add view form.

File

core/modules/views_ui/views_ui.admin.inc, line 776
Provides the Views' administrative interface.

Code

function views_ui_wizard_form_validate($form, &$form_state) {
  $wizard = views_ui_get_wizard($form_state['values']['show']['wizard_key']);
  $form_state['wizard'] = $wizard;
  $get_instance = $wizard['get_instance'];
  $form_state['wizard_instance'] = $get_instance($wizard);
  $errors = $form_state['wizard_instance']->validate($form, $form_state);
  foreach ($errors as $name => $message) {
    form_set_error($name, $message);
  }
}