title: Drupal form editing and conditional fields
body: <p>I have the following in my template.php file:</p>
  
  <pre><code>function theme098_theme() {
    return array(
      'email_node_form' =&gt; array(
        'arguments' =&gt; array('form' =&gt; NULL),
      )
    );
  }
  </code></pre>
  
  <p>and...</p>
  
  <pre><code>function theme098_email_node_form($form) {
      return drupal_render($form);
  }
  </code></pre>
  
  <p>I've excluded the code where i actually modify the form and cut it down so that no modifications happen. Two problems occur:</p>
  
  <ol>
  <li>The order of items (i.e. their weights) is messed up. The save button is at the top etc. Even if I try to edit the form by setting the weight, the save button STILL appears at the top.</li>
  <li>The real problem: Conditional fields doesn't work. For some reason, I think this overwrites what other modules are supposed to do? I'm not sure</li>
  </ol>
  
  <p>Can anyone shed some light?</p>