Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
contact.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 23:14 UTC
Updated:
13 Jun 2012 at 12:31 UTC
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
Comment #1
gpk commentedString overrides module might be an easier wyay of achieving this.