hook_nodeapi('validate')

Posts: 19
Joined: 08/15/2007

I've a couple of CCK field attached to the "product" content type.
Maybe I'm wrong but it seems 'validate' is never called on product nodes.
I can hook 'submit' without problem but no luck with 'validate'.
Works fine with other content types.
Any idea ?
Thanks!
(UC-Beta3)

Posts: 19
Joined: 08/15/2007
Posts: 2102
Joined: 08/07/2007
AdministratoreLiTe!

I think at some point hook_validate() wasn't working like I thought it should, so I added in a validate handler to the form. But because I wanted to see if it was a Drupal problem or an Übercart problem, I changed it back. Now it works fine.

If you've got some form_alter that's overwriting the validate handlers, that will prevent the product validation from working. This would be fixed with the latest revision, 845.

Posts: 19
Joined: 08/15/2007

Thanks Lyle, works fine now !
Cheers,