By davecoventry on
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
by using form_alter your
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
Sorry?
'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.
Where are these stored
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
I found it.
They are under the 'data' field in the users table.
Use content_profile
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.