I am new to drupal, what I am intending to do is I want to get the values of all the fields in user registration form after submission.
I have tried many things but nothing worked for me. I tried to use the hook_user with $op == submit, but nothing was coming out.
Any help will be appreciated.

Comments

Kuldip Gohil’s picture

Hi,

you can get all the fields from user by load that user after submission of that user...

like $user_info = user_load(2);

print "

";
print_r($user_info);
print "

";

--
Kuldip Gohil
Software Engineer - Global Software Consulting (Gloscon)
1-888-DRUPAL-9 (378-7259)
http://www.gloscon.com