Posted by ajajmal006 on November 22, 2009 at 7:32am
Hi,
I am using Drupal 6. I need to do validation for the cck form could anyone help me to do this.
Thanks
Hi,
I am using Drupal 6. I need to do validation for the cck form could anyone help me to do this.
Thanks
Comments
hook_form_alter() + #validate callback
Try implementing a hook_form_alter() in your custom module, and here append a #validate callback to the form.
You could also implement hook_nodeapi() for $op == 'validate'.
See api.drupal.org for more information on Forms API and other Drupal hooks.
Thanks
Hi markus,
Thankyou very much i will try it and update you ...
validation in drupal form field
Hi