All pastes #314327 Raw Edit

Untitled

public text v1 · immutable
#314327 ·published 2007-01-12 17:23 UTC
rendered paste body
I PUT THIS IN MY TEMPLATE.PHP
-----------------------------

function phptemplate_node_form($form) {
  if ($form['form_id']['#value'] == 'content_questions_node_form') {
  return _phptemplate_callback('content_questions', array('form' => $form));
   }
}

-----------------------------
AND THIS IS MY CONTENT_QUESTIONS.TPL.PHP FILE 
-----------------------------

<div class="form-header"></div>
<div class="form-wrapper1">
  <div class="form-container2">
    <div class="form-field1">
      <div class="form-text"><span>Clinical Relevance</span>*</div>
      <?php print form_render($form['field_clinical_relevance']); ?></div>
  </div>
  <div class="form-wrapper2">
    <div class="form-container1">
      <div class="form-text">1) <span>Title</span>*</div>
      <div class="form-title"><?php print form_render($form['title']); ?></div>
      <div class="form-text">2) <span>Keywords</span>*</div>
      <div class="form-taxonomy"><?php print form_render($form['taxonomy']); ?></div>
      <div class="form-text">3) <span>Image</span>*</div>
      <div class="form-field2"><?php print form_render($form['field_image']); ?></div>
    </div>
    <div class="form-body">
      <div class="form-text">4) <span>Description</span>*</div>
      <?php print form_render($form['field_question']); ?></div>
    <div class="form-container3">
      <div class="form-preview-button"><?php print form_render($form['preview']); ?></div>
      <div class="form-submit-button"><?php print form_render($form['submit']); ?></div>
    </div>
  </div>
</div>
<?php print form_render($form); ?>