snipt

Ctrl+h for KB shortcuts

PHP

Drupal 7 : access view panes argument in template

1
2
3
4
<?php

// In the view template you've override
var_dump($view->args) // will show you the list of args available 
https://snipt.net/embed/7a8155a64897580a9144836aa07f2894/
/raw/7a8155a64897580a9144836aa07f2894/
7a8155a64897580a9144836aa07f2894
php
PHP
4
2016-12-26T16:51:21
True
False
True
Jan 16, 2013 at 07:09 AM
/api/public/snipt/53830/
drupal-7-access-view-panes-argument-in-template
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1">// In the view template you&#39;ve override</span> </span><span id="L-4"><a name="L-4"></a><span class="nb">var_dump</span><span class="p">(</span><span class="nv">$view</span><span class="o">-&gt;</span><span class="na">args</span><span class="p">)</span> <span class="c1">// will show you the list of args available </span> </span></pre></div> </td></tr></table>
"drupal 7", "view panes", argument, template