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
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
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
the web form module worked in my case.. thnx!!