snipt

Ctrl+h for KB shortcuts

PHP

Using the l() function example Drupal

print l($update_link, 'node/add/update/'.$view->args[0], array('html' => TRUE, 'query' => array('destination' => 'node/'.$view->args[0]),'attributes' => array('class'=>'add-update')));
https://snipt.net/embed/d32259abcd88298236a1f2be66a8269d/
/raw/d32259abcd88298236a1f2be66a8269d/
d32259abcd88298236a1f2be66a8269d
php
PHP
1
2019-06-18T03:39:42
True
False
False
/api/public/snipt/88481/
using-the-l-function-example-drupal
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">print l($update_link, &#39;node/add/update/&#39;.$view-&gt;args[0], array(&#39;html&#39; =&gt; TRUE, &#39;query&#39; =&gt; array(&#39;destination&#39; =&gt; &#39;node/&#39;.$view-&gt;args[0]),&#39;attributes&#39; =&gt; array(&#39;class&#39;=&gt;&#39;add-update&#39;)));</span> </span></pre></div> </td></tr></table>
drupal, php