pass array from module to render in template I have a module name mysite.module in that module I have function named mysite_preprocess_panels_pane. That has an array and I would like to render this array inn panel.tpl.php. My code does not work. Any suggestion please, Thanks.

function mysite_preprocess_panels_pane(&amp;$variables) {  
 $ar = array('arg1'=&gt; 'car', 'arg2'=&gt; 'truck');
}

&lt;div class="pane-content"&gt;
&lt;div class="panel-panel panel-col-first"&gt; &lt;?php print  $ar['arg1']&gt;&lt;/div&gt;
&lt;/div&gt;
Place the array into the variables. like.

function mysite_preprocess_panels_pane(&amp;$variables) {  
 $variables['ar'] = array('arg1'=&gt; 'car', 'arg2'=&gt; 'truck');
}