Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
7.x-2.x-dev
Component:
content.module
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2010 at 19:12 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent
Comments
Comment #1
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 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 commentedAnd for 8.x:
#52051: Validation API/UI