How to access the links variable from a template? I have created a views template for a block and I would like to insert the list of links that normally appears at the bottom of teasers and/or pages (the $links variable) into the template like it is done in page.tpl.php.

However I can't find how to get this information given a node's id.

How do I accomplish this? Is there a Drupal 7 command that accomplishes this?
I have found the solution to this problem. You need to do the following in your template:

&lt;?php $node = node_load($fields['nid']-&gt;raw);
global $language;
node_build_content($node, 'full', $language-&gt;language);
if (!empty($node-&gt;content['links'])): ?&gt;
    &lt;div class="links"&gt;
      &lt;?php print render($node-&gt;content['links']); ?&gt;
    &lt;/div&gt; &lt;!-- /links --&gt;
&lt;?php endif; ?&gt;