extending the initial profile page

vinceyoumans's picture

is there a way to change the profile fields before they are submitted as an applicaiton for an account? initially all you get is a uname and an email address. I would like to add name, address, phone... blah blah...
I kow that i can use profile as node, but all that data is collected AFTER you request an account. I want to get this data BEFORE they submit for an account.

Login to post comments

Collecting additional profile fields upon registration

orangecoat-ciallella - Sat, 2009-02-21 13:54

I have used the programmatic methods to collect additional information on the /user/register form and then save them to a node type. It sounds like that's what you're asking.

See for some Drupal 6 sample code that uses a form_alter hook to call drupal_execute to create the profile. Please note that I'm aware KarenS advises using node_save() instead of drupal_execute(). However, I've managed just fine on three different projects with drupal_execute().


http://drupal.org/project/con

adam_b@drupal.org - Sun, 2009-08-02 09:24