You are here

function entityreference_view_widget_exposed_filters_validate in Entity Reference View Widget 7

1 string reference to 'entityreference_view_widget_exposed_filters_validate'
entityreference_view_widget_prepare_filters in ./entityreference_view_widget.module
Prepare the form containing exposed views filters for functioning as a part of the widget form (validation, #ajax, #parents...).

File

./entityreference_view_widget.module, line 498

Code

function entityreference_view_widget_exposed_filters_validate($element, &$form_state) {

  // @todo Do here what views_exposed_form_validate() does.
  // We have both the exposed plugin and the view in $element['#exposed_form_plugin'].
  // Get a list of all errors, run the handler & plugin validators, get a new
  // list of errors. If the list grew, pop the new elements and add them to the
  // exposed_filters fieldset. Right now the validators do almost nothing
  // so there's no big rush to do this.
}