Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
drupalnesia CreditAttribution: drupalnesia commentedhttp://drupal.org/project/validation_api says:
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?
Comment #2
kenorb CreditAttribution: kenorb commentedThe 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.
Comment #3
kenorb CreditAttribution: kenorb commentedAnd for 8.x:
#52051: Validation API/UI