By default drupal checks to see if a mandatory profile field is blank or not. I want to be able to validate a profile entry against a value already stored in a table at account creation time.

I have the profile field and table, but I can't find where I can add my own validation without customizing the profile module, which I don't want to have to do. Is there a simple hook to use to do this?

Thanks to anyone who can provide a pointer.

Comments

vit137’s picture

Thanks to me that is.

Here's how I did it. Make a module. Then take advantage of user_hook() to grab the variable under the $edit variable. Then check against your table or whatever.