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>
        print $start;

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

  • I don't see any preprocess function in that code. – Jaypan Apr 23 at 14:04

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.