You are here

function feedapi_handler_field_url::render in FeedAPI 6

File

views/handlers/feedapi_handler_field_url.inc, line 39

Class

feedapi_handler_field_url
Field handler to provide title links to drupal nodes

Code

function render($values) {
  $value = $values->{$this->field_alias};
  if ($this->options['display_url'] == 'title') {
    return l($values->{$this->aliases['title']}, $value);
  }
  if ($this->options['display_url'] == 'url') {
    return l($value, $value);
  }
  return $value;
}