Closed (fixed)
Project:
Form API Validation
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Oct 2012 at 10:44 UTC
Updated:
6 Mar 2014 at 02:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pedrofaria commentedwill be available on next release.. more information for usage will be added at project page.
Thank you!
Comment #2
pedrofaria commentedComment #4
bropp commentedI found myself needing a slightly different functionality. A patch is attached that allows a module's hook_fapi_validation_rules() implementation to define custom 'error callback' functions for each validator, instead of having to specify one in the form #rules definition. If error message or error callback has been defined in #rules form array, the default callback will not be used.
An example:
Comment #5
bropp commentedFixed formatting error in comment.
Comment #6
jnicola commentedWhile potentially useful, this seems to give up very useful and common basic functionality in favor of your desire for custom functionality.
If you can come back with a concept and patch that can accomplish both, that would be sensible. If I missed something reopen it as well, and please help me see what I missed.
Thanks!
Marking fixed as the initial request works