本站本站启用了Drupal缓存,匿名用户只能看到3小时以前的内容.
项目地址: http://drupal.org/project/field_validation
现在支持的validator有:
•Regular expression
•Numeric values (optionally specify min and / or max value)
•Minimum length
•Maximum length
•Minimum number of words
•Maximum number of words
•Plain text (disallow tags)
•Must be empty (Anti-Spam: Hide with CSS)
•Words blacklist
•Minimum number of selections required
•Maximum number of selections allowed
•Exact number of selections required
•Unique
•Match another field(or entity property)
•Specific value(s)
•Require at least one of several fields
•Equal values on multiple fields
•Unique values on multiple fields
•Custom PHP function
同时还支持“column defined in the hook_field_schema()”的自定义,而不是原来默认的“value”
评论
Aw, this was a very nice
这个验证区域,如今写的都是英文,看不懂的啊,看样子要汉化啊