<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">&lt;?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>
          &nbsp; return
          array(<br>
          &nbsp;&nbsp;&nbsp; 'contact_site_form'
          =&gt; array(<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'render
          element' =&gt; 'form',<br>
          &nbsp;&nbsp;&nbsp; ),<br>
          &nbsp; );<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>
            &nbsp; //
            Hide the subject field. It's not required.</font></font><font
          style="font-size: 9pt" size="2"><br>
          &nbsp; hide($variables['form']['subject']);<font color="#008000"><br>
            &nbsp; //
            Change the labels of the "name" and "mail"
            textfields.</font><br>
          &nbsp; $variables['form']['name']['#title']
          = t('Name');<br>
          &nbsp; $variables['form']['mail']['#title']
          = t('E-mail');<font color="#008000"><br>
            &nbsp; //
            Create output any way you want.</font><br>
          &nbsp; $output
          = '&lt;div class="something"&gt;';<br>
          &nbsp; $output
          .= '&lt;p class="note"&gt;'. t("We'd love hear from
          you. Expect to hear back from us in 1-2 business days.")
          .'&lt;/p&gt;';<br>
          &nbsp; $output
          .= render($variables['form']['name']);<br>
          &nbsp; $output
          .= render($variables['form']['mail']);<br>
          &nbsp; $output
          .= '&lt;/div&gt;';<font color="#008000"><br>
            &nbsp; //
            Be sure to include a rendered version of the remaining form
            items.</font><br>
          &nbsp; $output
          .= drupal_render_children($variables['form']);<font
            color="#008000"><br>
            &nbsp; //
            Return the output.</font><br>
          &nbsp; 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>