tags:

views:

31

answers:

2

Hi, I Am new to drupal I need to customize core functionality like register module and event module.please share you thought / sample code / sample website for get the clarification over my issue

Thanks in advance Balaji

A: 

You can use hook_form_alter to heavily modify the way Drupal's registration works, by modifying the form's fields, adding extra validation/submit functions, etc. It's difficult to give more detail without knowing what you're wanting to do.

ceejayoz
Thanks ceejayoz,I just want to add some more fields like firstname,lastname.. on registration page.and also i need to make sure to view / edit the those information under the my account section.
Balaji
+1  A: 

From what you posted in the comment to creejayoz answer, it seems like what you are after is not using hook_form_alter, but something in the line of what the profile module does. It's part of drupal core, and with it you can add extra fields to the user like first and last name. There are also more advanced modules that you can use instead, but it seems like you wont need it. Using the profile module will also be a lot quicker and easier than using hook_form_alter as you wont need to create a db table make SQL and such to the save the data.

googletorp
Yep, `profile.module` is the way to go here. No coding needed!
ceejayoz

related questions