You are here

function views_handler_field_user_mail::render in Views (for Drupal 7) 6.2

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field_user::render

File

modules/user/views_handler_field_user_mail.inc, line 26

Class

views_handler_field_user_mail
Field handler to provide acess control for the email field

Code

function render($values) {
  if ($this->options['link_to_user'] == 'mailto') {
    return l($values->{$this->field_alias}, "mailto:" . $values->{$this->field_alias});
  }
  return $this
    ->render_link(check_plain($values->{$this->field_alias}), $values);
}