I have created the Custom registration form module using the form API as per the requirements. I have also inserted the records in the database using form alter functions. Now I need to create an edit registration form for the logged users.

My suggestion on this is:

  1. Create edit_reg form module with form controls
  2. Retrieve the records of logged users
  3. Pass the values to defalut value of form controls

Is the above method good? May you suggest me any other method to edit the form API?

I am using Drupal 7.

  • There's nothing wrong with that. Do you have any specific questions?
    – BetaRide
    Commented Jul 7, 2012 at 6:42
  • On Drupal, the form to edit an account is very similar to the one used to register an account. Is there any reason your form to edit the registration information should be different from the form to edit an existing account?
    – apaderno
    Commented Jul 7, 2012 at 7:52

1 Answer 1


Why not use the existing user edit form, and use hook_form_alter() to add your fields. That way, you get all the built in functionality, such as password changing etc.

It would also make sense to make the user registration alterations the same way, instead of creating your own flow, unless it for some other reason makes sense to do it that way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.