0

I am trying to display following field to the tpl.php file. However, I do not know how to display this field.

$form['ExStart'] = array(
    '#type' => 'value',
    '#value' => $overallstart,
  );

Above code is in the review.inc file Now I am sharing code for the hook_preprocess function in the review.inc file.

function _sdbpireq_display_review(&$vars) 
{
  $vars['start'] = drupal_render($form['ExStart']);
}

I am trying to retrive above field to sdbpireq_display_review.tpl.php file.

  <tr id='sdbpireq tr' class='even'>
        <th class='label'>Experiment Start Date:</th>
        <td>
        <?php
        print $start;
        ?>     
       </td>
      </tr>

However,it is displaying blank. Any help would be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.