Drupal: validating custom content
3 answers
The easiest way is hook_form_alter () and #validation on the form. You would have to implement this in your own module.
+5
source to share
The form api is what you use for validation, you will create your own validation function. I assume you are using D6
There's a less painful way to go: http://drupal.org/project/validation_api
This module allows you to make php code or regex for any given field.
Hope it helps.
+3
source to share
To create a custom module to implement form validation, I suggest this method: create a new module to validate a content type field in drupal
0
source to share