hook_form_alter or ...

dragon2000 - July 16, 2009 - 06:21

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.

hook_form_alter is best, but

nirbhasa - July 16, 2009 - 06:39

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

thanks, you said

dragon2000 - July 28, 2009 - 07:13

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?

the web form module worked in

afreen.k - July 16, 2009 - 08:26

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

 
 

Drupal is a registered trademark of Dries Buytaert.