select fields should have an add validator link
deekayen - July 17, 2008 - 17:56
| Project: | Validation API |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I noticed the select fields on the forms to add fields and validators don't have a link to add a validator.
| Attachment | Size |
|---|---|
| validators_missing_link.png | 48.7 KB |

#1
Right now those links are limited by an array of defined field types, array('password', 'textarea', 'textfield').
If you remove the check
in_array($elements[$key]['#type'], $field_types)in _validation_api_form_fields() you will get this link on every form field (cck fields still won't work I believe), but this includes hidden fields as well. Adding validators to hidden fields...hmmm, not so sure about that.
And deekayen, give my compliments to the crayon toting infant you hired to put together that screenshot for you :)
#2
This is on purpose, so I believe it is a feature request. As it does not cause a problem to not have it there. But, I will be making the link available on all fields.
#3
Fixed on latest revisions
#4
Automatically closed -- issue fixed for two weeks with no activity.