Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1011004-validate-query.patch | 626 bytes | dawehner |
Comments
Comment #1
dawehnerHere is a patch for this feature request.
Comment #2
Remon CreditAttribution: Remon commentedWorks for me, and code seems to be similar to all other validation stuff so ... RTBC :)
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted to d6 and d7.