Sorry if this already asked, I think CCK should add validation per field.

But I need to know if this field-validation (using PHP) will include in CCK? Or, is there a module that already support this validation?

Comments

drupalnesia’s picture

http://drupal.org/project/validation_api says:

Note: As of 2010/01/28, this module appears to no longer be supported. If you are interested in taking this module over, or you as the module maintainer feel this message has been posted in error, please reply to #637522: Validation API module appears abandoned.

While http://drupal.org/project/covert_fields only supported limited fields.

CCK supports "Allowed values - PHP Code" but why no Field-Validation based on our own PHP code in CCK core?

kenorb’s picture

Status: Closed (duplicate) » Active

The same question for 5.x: #203992: php validation code support, here for 6.x and now for 7.x

There is already: 'Allowed values function', why not to create 'Validation function'.
Or create pre-populated dropdown with most popular Drupal validation functions from the core (like valid_email_address) and extend it to hooks.

kenorb’s picture

Version: 6.x-3.x-dev » 7.x-2.x-dev
Status: Active » Closed (duplicate)

Status: Active » Closed (duplicate)