0
votes

i added a profile field to registration form. how to show in edit registration (account) form . i wrote a module for edit account in that $form [function editregistration_form_user_profile_form_alter(&$form, &$form_state) ] doesn't contain the values of custom profile fields.

2

2 Answers

2
votes

If you are using the core Profile module, profile fields have a setting that you can check off that say 'Show in registration form' when you edit them.

-1
votes

The name of that function looks a bit funny. What's your module called? And the form id?

There's a bit about naming hook_form_alter functions in the 'Writing the Module' section of this: http://www.chromaticsites.com/blog/drupal-tutorial-form-overrides-and-element-specific-validations/