I&#39;m going around in circles :)  <div>Ok, so I created variables in template_preprocess_region(). I print the variables in region--featured.tpl.php. Nothing shows up. If I print a string in the same template, nothing shows up. If, however, I create a block and assign it to that region, then the template fires and everything prints.</div>
<div><br></div><div>So, how do I get content into the region from template.php so that the region template fires? </div><div><br></div><div>Also, I notice that template_preprocess_region fires for every region with content. In order to not have the assignments I do in it fire for every region on the page, I need to check $vars[&#39;region&#39;] ... the problem, though, is the same as with the region template file... $vars[&#39;region&#39;] contains &#39;content&#39;, &#39;sidebar first&#39; and &#39;footer&#39; during the page creation, but never my region...I assume because my region doesn&#39;t have content. Seems like a catch-22.<br>
<br><div class="gmail_quote">On Fri, Jun 1, 2012 at 2:34 PM, Benj Fredrick <span dir="ltr">&lt;<a href="mailto:benj.fredrick@gmail.com" target="_blank">benj.fredrick@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i&#39;m just setting some $vars[&#39;custom_variables&#39;] - and then printing them in a region tpl file<span class="HOEnZb"><font color="#888888"><div><br></div><div>-Benj</div></font></span><div class="HOEnZb"><div class="h5">
<div><br><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 12:25 PM, Jeff Greenberg <span dir="ltr">&lt;<a href="mailto:listmail.ayendesigns@gmail.com" target="_blank">listmail.ayendesigns@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div>I did try using that function, but two things, into which structure do you deposit the content, and if I display the region name, it seems this doesn&#39;t fire for the empty region.<br>

<br>Sent from my iPhone</div><div><div><div><br>On Jun 1, 2012, at 10:53 AM, Benj Fredrick &lt;<a href="mailto:benj.fredrick@gmail.com" target="_blank">benj.fredrick@gmail.com</a>&gt; wrote:<br><br></div><div></div>
<blockquote type="cite"><div>I don&#39;t know that it&#39;s the Right Way or the Best Way, but I have used template_preprocess_region() to add content to an empty region from template.php. <div><br></div><div>hope that helps,</div>

<div>-Benj</div><div>
<br><br><div class="gmail_quote">On Thu, May 31, 2012 at 5:54 PM, Jeff Greenberg <span dir="ltr">&lt;<a href="mailto:listmail.ayendesigns@gmail.com" target="_blank">listmail.ayendesigns@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was asking a slightly different question in the themes list, but I&#39;ve narrowed down my issue, and believe it&#39;s more of a support question than a theme development question.<div>


<br></div><div>I am trying to add content to a region from within template.php. The region has no content prior to doing this.</div>
<div><br></div><div>I have tried drupal_add_region_content() from template_preprocess_page, template_preprocess_html and template_preprocess_region.</div><div><br></div><div>I&#39;ve also tried just making an assignment to $vars[page][my_region][my_section_name][content][#markup] from the same functions.</div>



<div><br></div><div>Nothing results in output. Do I have to do it using hook_page_build from a module?</div>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>-- </span><br><span>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]</span></div></blockquote></div></div></div>

<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>
</div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>