Hi there,
I have written a query plugin in which there are options form, the form includes a select list that the user should select an item from. Unfortunately, overriding options_validate() to make sure that the user have selected an item is not enough, since the user hit view's save button even without opening query settings form.
Also, I tried overriding views_plugin::validate() but the code does not seem to be executed. Any clues?
Thanks in advance.

CommentFileSizeAuthor
#1 1011004-validate-query.patch626 bytesdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Category: support » feature
Status: Active » Needs review
FileSize
626 bytes

Here is a patch for this feature request.

Remon’s picture

Status: Needs review » Reviewed & tested by the community

Works for me, and code seems to be similar to all other validation stuff so ... RTBC :)

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed to d6 and d7.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.