Hi all.

Sorry to ask such a simple question, but how do I change the heading/title of the contact page for the (core) contact module?

I assume I need to edit the contact.module file? If so, what do I change, because I tried to change a few places and it didn't work. (I ran update.php, but still nothing.)

If not, what are the (exact) steps?

I am new, so you may need to dumb things down a bit :)

I searched the forums and documentation and found nothing on how to do this.

Thanks in advanced.

Dan

Comments

wincliff’s picture

Hi Dan

I was doing a random search in google and came across your query. Me in the same boat! I see your post date as 23rd July, and today being 4th August I am assuming you found the answer? If yes, please let me know?

Thanks!
---Ari

http://www.wincliff.com
...Anything is possible.

vm’s picture

The proper way to do this is to use the locale.module which is part of core. enable the module in administer -> modules
then create a site specific language see: http://drupal.org/node/24593

mbarulli’s picture

Is it possibile to redirect the user that submitted a message from the contact form to a specific page?

Many thanks in advance,
Marco

vm’s picture

not sure, investigate the global redirect module in the downloads area.

Tor Arne Thune’s picture

In Drupal 7 (and probably Drupal 6) you can modify the title bar text and page title by adding this code to the template.php file of your theme (remembering to change 'mytheme' to the name of your theme):

/**
 * Implementation of hook_form_FORM_ID_alter()
 */
function mytheme_form_contact_site_form_alter(&$form, &$form_state) {
  drupal_set_title('Contact Us');
}

Never hack core files, as this will make it a headache to troubleshoot and upgrade your site.

vm’s picture

pillarsdotnet’s picture

Good. — Fast. — Cheap.
(Pick any two.)