The row style plugin can have a validate() method but it's never called when the style plugin is being validated.

The attached patch applies to 6.x-3.x and 6.x-2.x. I'm attaching the one for 3.x, but you'll probably get fuzz warnings when applying it to 2.x.

CommentFileSizeAuthor
views3-row_plugin-validate.patch1.34 KBAnonymous (not verified)

Comments

Anonymous’s picture

Status: Active » Needs review
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine.

Manuall testing works fine. Thats the same code snippet as in the display plugin.

Anonymous’s picture

If you want to test the patch on a row style plugin that requires it, see the developer snapshot of Semantic Views.

http://drupalcode.org/viewvc/drupal/contributions/modules/semanticviews/...

Create a new view that uses the semantic views row style. Add a new display and override the fields for that display. Views with this patch should reject attempts to save or preview. If fields are overridden, the row style must be overridden too.

dawehner’s picture

I tested it with a short hack on the fields row style plugin.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed to all branches.

Status: Fixed » Closed (fixed)

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