I've used hook_form_alter to add fields to my registration form.

How can I make sure that the fields are entered into the profile_fields and profile_values tables?

Same for the user editing the form post registration...

Comments

Kuldip Gohil’s picture

by using form_alter your field will not store into tables.. you have need to write code for that in _submit() hook ...

better is use profile field

davecoventry’s picture

'use profile field'?

Is it possible to feed directly into the profile module?

On my 'user_profile_form', which is the post-registration user account edit my new fields show up under

$form['_account']]['#value']['profile_7_football_part'] =1

and also under

$form['#attributes']['#parameters']['2' => stdClass Object]['profile_7_football_part'] =1

However they are not rendered onto the page.

davecoventry’s picture

Where are these fields stored? They show my 'user_profile_form', which is the post-registration user->account->edit.

$form['_account']]['#value']['profile_7_football_part'] =1
$form['#attributes']['#parameters']['2' => stdClass Object]['profile_7_football_part'] =1

davecoventry’s picture

They are under the 'data' field in the users table.

eddy147’s picture

Hello,

I think that u can achieve this with the content_profile module: (http://drupal.org/project/content_profile).
Install the module.
Create a node-type.
In edit, on the bottom click Content Profile.
Edit the node-type again.
Choose the tab Content Profile.
Under User Registration, you can choose Use on Registration.