Setting link target through views programatically I have a text field that turns its value into a link, provided it's an absolute link. For some reason, setting the target to blank is not working. Am I doing something wrong? I set the target inside the array. 

elseif (valid_url($row-&gt;{$view-&gt;field['field_myDoc_link_value']-&gt;field_alias}, TRUE)) {
  $fields['title']-&gt;content = l(
    $fields['title']-&gt;content,
    $row-&gt;{$view-&gt;field['field_myDoc_link_value']-&gt;field_alias},
    array('target'=&gt;'_blank', 'html' =&gt; TRUE)
  );
}


Or would I set it somewhere else? Thanks!
Your problem is that you need to define the target under attributes, so

array('target'=&gt;'_blank', 'html' =&gt; TRUE)


should instead be:

array('attributes' =&gt; array('target' =&gt; '_blank'), 'html' =&gt; TRUE)