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
Description

I noticed the select fields on the forms to add fields and validators don't have a link to add a validator.

AttachmentSize
validators_missing_link.png48.7 KB

#1

cYu - July 17, 2008 - 18:07

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

TapocoL - July 18, 2008 - 18:49
Title:select fields have no add validator link» select fields should have an add validator link
Category:bug report» feature request

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

TapocoL - August 5, 2008 - 04:00
Version:6.x-1.0-alpha1» 6.x-1.x-dev
Status:active» fixed

Fixed on latest revisions

#4

Anonymous (not verified) - August 19, 2008 - 04:02
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.