I am trying to modify drupal comment form so that just above the the form I can show a regions and add more blocks to that region (say some promotional banners).
I am doing this in template.php
I have a working themename_comment_form function and can set $form['intro']['#value']
to the value I want. I also know how to create a new region.
What I am struggling is to get the value of that region (say $above_comment_form
) and make it available inside themename_comment_form (something like $form['intro']['#value'] = $above_comment_form;
)
I have tried preprocess_page, preprocess_node to set the value like $vars['above_comment_form']=$above_comment_form
but no luck.