Hi Radek<br>Did change name in theme function to &#39;yourtheme&#39; name it will be<br>function yourthemename_theme().....<br>and later<br><font face="Courier New, monospace"><font style="font-size:9pt" size="2">function yourthemename_contact_site_form($variables) {</font></font>....<br>
<br>I only had problems with <font face="Courier New, monospace"><font style="font-size:9pt" size="2"> hide($variables[&#39;form&#39;][&#39;subject&#39;]); drupal reported it as mandatory.<br><br><br>And ALWAYS clear chache ( even twice ). It doesn&#39;t matter Linux or Windows as far as http server is set up corectly<br>
</font></font><br><div class="gmail_quote">On Mon, Sep 24, 2012 at 10:49 AM, Radek <span dir="ltr">&lt;<a href="mailto:mtrener@gmail.com" target="_blank">mtrener@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    the code below doesn&#39;t seem to work. I&#39;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&#39;m
    working on Linux (Ubuntu). I don&#39;t understand what&#39;s wrong either
    with the code or approach.<br>
    
    
    
    
    
    <p 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>
            return
          array(<br>
              &#39;contact_site_form&#39;
          =&gt; array(<br>
                &#39;render
          element&#39; =&gt; &#39;form&#39;,<br>
              ),<br>
            );<br>
          }</font></font></p>
    <p 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&#39;s not required.</font></font><font style="font-size:9pt" size="2"><br>
            hide($variables[&#39;form&#39;][&#39;subject&#39;]);<font color="#008000"><br>
              //
            Change the labels of the &quot;name&quot; and &quot;mail&quot;
            textfields.</font><br>
            $variables[&#39;form&#39;][&#39;name&#39;][&#39;#title&#39;]
          = t(&#39;Name&#39;);<br>
            $variables[&#39;form&#39;][&#39;mail&#39;][&#39;#title&#39;]
          = t(&#39;E-mail&#39;);<font color="#008000"><br>
              //
            Create output any way you want.</font><br>
            $output
          = &#39;&lt;div class=&quot;something&quot;&gt;&#39;;<br>
            $output
          .= &#39;&lt;p class=&quot;note&quot;&gt;&#39;. t(&quot;We&#39;d love hear from
          you. Expect to hear back from us in 1-2 business days.&quot;)
          .&#39;&lt;/p&gt;&#39;;<br>
            $output
          .= render($variables[&#39;form&#39;][&#39;name&#39;]);<br>
            $output
          .= render($variables[&#39;form&#39;][&#39;mail&#39;]);<br>
            $output
          .= &#39;&lt;/div&gt;&#39;;<font color="#008000"><br>
              //
            Be sure to include a rendered version of the remaining form
            items.</font><br>
            $output
          .= drupal_render_children($variables[&#39;form&#39;]);<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 style="margin-bottom:0cm;background:#ccffff"><font face="Courier New, monospace"><font style="font-size:9pt" size="2">Mark_owsky<br>
        </font></font></p>
    
    
    
  </div>

<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>