Module looks as though it will be very useful, thanks! I have a longish amount of information text on my site-wide contact page, that is appearing in the contact form block as well. It's not appropriate in the block. Can I suppress it?
Module looks as though it will be very useful, thanks! I have a longish amount of information text on my site-wide contact page, that is appearing in the contact form block as well. It's not appropriate in the block. Can I suppress it?
Comments
Comment #1
fuerst commentedThere are two ways to achieve this:
A) Create a module and use Drupal's hook_form_alter() to modify the form or
B) Register a theming function in the template.php of your theme.
I would prefere A) because it is independent from your theme. If you don't know how to write a module B) is perfect for you. Either way is illustrated for Drupal 6 and 5 in a wonderful article by Addison Berry: http://www.lullabot.com/articles/modifying-forms-5-and-6
Following an example of B) for Drupal 6 to be put in the template.php file of your Theme. Replace yourtheme in the function names by the name of your theme as seen in the folder/directory name of the theme. Don't forget to clear the Drupal Theme Registry by pressing the Clear Cache button in Administer > Settings > Performance (/admin/settings/performance).
Comment #2
JulieR commentedThanks, this is very helpful - it's useful to understand both methods. The article looks like just what I need.
Tried out the above code, it works like magic. I look forward to figuring out what it's actually doing.
Comment #3
JulieR commented