1 views_handler_field_user_mail.inc views_handler_field_user_mail::render_link($data, $values)

Overrides views_handler_field_user::render_link

File

core/modules/user/views/views_handler_field_user_mail.inc, line 34
Definition of views_handler_field_user_mail.

Class

views_handler_field_user_mail
Field handler to provide acess control for the email field.

Code

function render_link($data, $values) {
  parent::render_link($data, $values);

  if ($this->options['link_to_user'] == 'mailto') {
    $this->options['alter']['make_link'] = TRUE;
    $this->options['alter']['path'] = "mailto:" . $data;
  }

  return $data;
}