I am trying to use template.php to rename one of the form labels, could someone please tell me why the following doesn't work? I have been searching for hours tonight on this, and cant seem to find any documentation on how to hook into contact correctly, please help!

function helpinghands_theme() {
  return array(
    'contact_site_form' => array(
      'arguments' => array('form' => NULL),
    ),           
  );
}

function helpinghands_contact_site_form(&$form)
{
	$form['mail']['#title'] = t('E-Mail');
}

Comments

gpk’s picture

Project: Contact » Drupal core
Version: 7.x-2.x-dev » 7.x-dev
Component: Code » contact.module
Status: Active » Fixed

String overrides module might be an easier wyay of achieving this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.