Use a theme preprocess function in your theme&#39;s template.php file.<div><br></div><div>function mytheme_<meta charset="utf-8"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">views_view_table__viewname__atachment_1(&amp;$vars) { ... </span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; ">}</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; ">This will give you access to every template variable in a reference-passed array, which should have the view and row objects.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; ">After you add the function to template.php, clearing cache resets the theme registry which is necessary for the preprocess function to execute. </span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; ">Use devel module&#39;s dpm() function to inspect the values.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; ">For more information about preprocessors, see the handbook <a href="http://drupal.org/node/223430">http://drupal.org/node/223430</a> or check out my session at DrupalCon Copenhagen <a href="http://www.archive.org/details/ThemePreprocessFunctionsAnIntroduction_383">http://www.archive.org/details/ThemePreprocessFunctionsAnIntroduction_383</a></span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div>
<br><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 4:15 PM, Joel Willers <span dir="ltr">&lt;<a href="mailto:joel.willers@sigler.com">joel.willers@sigler.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 lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">In views-view-table—viewname—atachment-1.tpl.php I can access $rows and get a nice array view that I can play with.  I can also get $footer, which I can also play around with.  Is there a way using views_get_view to get those nice arrays?  -&gt; execute didn’t give me what I wanted, so might there be another function I might get more what I’m looking for?</p>
<p class="MsoNormal"> </p><font color="#888888"><p class="MsoNormal">Joel</p><p class="MsoNormal"> </p></font></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>