package some validators with the project

deekayen - September 5, 2008 - 21:32
Project:Validation API
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

It'd be nice if when the module was installed, users were already presented with a basic set of validator options instead of having to create new ones for basic things.

#1

TapocoL - September 11, 2008 - 19:42
Status:active» fixed

Added URL and Email Address validators that are created on installation.

#2

cYu - September 19, 2008 - 20:39
Status:fixed» active

TapocoL, I think a more robust set of pre-packaged validators still needs to be in place so that an initial install has enough validators to be immediately useful to a user/tester. A nice set to start with would be the set of CCK modules that basically exist only for the purpose of having validations...like US Zip Code, Phone Number, etc.

#3

TapocoL - September 19, 2008 - 23:25

An idea we have tossed around is to have a page hosted on d.o or a personal site which has contributed validators. They would select the validators and it would give the visitor the code to put right into their Drupal system.

However, I am sure that this could become a very hefty page to maintain with each release version of this project and people contributing new validators. So, I have been awaiting to get a final release in, so I could feel confident that the import/export functionality is stable. Then, I could build the contributed validators around the set-up.

So, my idea after the final release is to set-up a page linked from the d.o project page that will give a visitor a list of available validators, and then give them radios for which version of this project they have. I would set-up an export method for each release to capture the exact method from that release. So, if I had to make small changes between released versions in the export method, you could still get validators based on the older version.

Another idea that I will just throw out there, is to have a repository of the validators. Then, when someone has this module installed anywhere connected to the internet, they can browse and install the repo validators all in their Drupal installation. I am interested in hearing anyone's comments or ideas on this, however there is no chance it would be in the initial release.

 
 

Drupal is a registered trademark of Dries Buytaert.