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.

Comments

TapocoL’s picture

Status: Active » Fixed

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

cyu’s picture

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.

TapocoL’s picture

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.