<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
the code below doesn't seem to work. I've copied it from DGD7 book
for learning purposes. I placed it in template.php in my custom
theme directory, but nothing changes to the contact-site-form. I'm
working on Linux (Ubuntu). I don't understand what's wrong either
with the code or approach.<br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.4.1 (Win32)">
<style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
        --> </style>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<p class="western" style="margin-bottom: 0cm; background: #ccffff"
align="LEFT">
<font face="Courier New, monospace"><font face="Courier New,
monospace"><?php<br>
<font style="font-size: 9pt" size="2">/**<br>
*
Implements hook_theme().<br>
*/</font></font><font style="font-size: 9pt" size="2"><br>
function
dgd7_theme() {<br>
return
array(<br>
'contact_site_form'
=> array(<br>
'render
element' => 'form',<br>
),<br>
);<br>
}</font></font></p>
<p class="western" style="margin-bottom: 0cm; background: #ccffff">
<font face="Courier New, monospace"><font face="Courier New,
monospace"><font style="font-size: 9pt" size="2">/**<br>
*
Implements theme_forms_contact_site_form().<br>
*/</font></font><font style="font-size: 9pt" size="2"><br>
function
dgd7_contact_site_form($variables) {</font><font face="Courier
New, monospace"><font style="font-size: 9pt" size="2"> <br>
//
Hide the subject field. It's not required.</font></font><font
style="font-size: 9pt" size="2"><br>
hide($variables['form']['subject']);<font color="#008000"><br>
//
Change the labels of the "name" and "mail"
textfields.</font><br>
$variables['form']['name']['#title']
= t('Name');<br>
$variables['form']['mail']['#title']
= t('E-mail');<font color="#008000"><br>
//
Create output any way you want.</font><br>
$output
= '<div class="something">';<br>
$output
.= '<p class="note">'. t("We'd love hear from
you. Expect to hear back from us in 1-2 business days.")
.'</p>';<br>
$output
.= render($variables['form']['name']);<br>
$output
.= render($variables['form']['mail']);<br>
$output
.= '</div>';<font color="#008000"><br>
//
Be sure to include a rendered version of the remaining form
items.</font><br>
$output
.= drupal_render_children($variables['form']);<font
color="#008000"><br>
//
Return the output.</font><br>
return
$output;</font></font><font face="Courier New, monospace"><font
style="font-size: 9pt" size="2"><br>
}<br>
</font></font></p>
<p class="western" style="margin-bottom: 0cm; background: #ccffff"><font
face="Courier New, monospace"><font style="font-size: 9pt"
size="2">Mark_owsky<br>
</font></font></p>
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.4.1 (Win32)">
<style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
                A:link { so-language: zxx }
        -->
        </style>
</body>
</html>