Hi,
I want to change the contact module by adding some fields to it (for example: City,
,Postal Code,Phone,Fax)
Is that better to do this by hook_form_alter or writing a new version of the module and putting
it in the "sites\all\modules" directory?
thanks in advance.

Comments

nirbhasa’s picture

hook_form_alter is best, but you would still need to create/txtend a db table to hold the new data

Perhaps the webform module might do what youre looking for?

http://drupal.org/project/webform

dragon2000’s picture

thanks,
you said hook_form_alter is best.
how should I use that? shall I write another module named "advanced contact" to add additional fields to contact module or do sth else?

afreen.k’s picture

the web form module worked in my case.. thnx!!