You are here

function views_handler_field_fontyourface_license::render in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 views/views_handler_field_fontyourface_license.inc \views_handler_field_fontyourface_license::render()
  2. 7.2 modules/fontyourface_ui/views/views_handler_field_fontyourface_license.inc \views_handler_field_fontyourface_license::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

views/views_handler_field_fontyourface_license.inc, line 54
Views handler.

Class

views_handler_field_fontyourface_license
Field handler to provide simple renderer that allows linking to a license.

Code

function render($values) {
  if ($this->options['link_to_license'] == 'license_url') {
    $license_url = $values->{$this->aliases['license_url']};
    if ($license_url != '') {
      $this->options['alter']['make_link'] = TRUE;
      $this->options['alter']['path'] = $license_url;
    }

    // if
  }

  // if
  return check_plain($values->{$this->field_alias});
}