You are here

function entityform_handler_link_field::render_link in Entityform 7.2

Render whatever the data is as a link to the node.

Data should be made XSS safe prior to calling this function.

3 calls to entityform_handler_link_field::render_link()
entityform_handler_delete_link_field::render in views/entityform_handler_delete_link_field.inc
Render the field.
entityform_handler_edit_link_field::render in views/entityform_handler_edit_link_field.inc
Render the field.
entityform_handler_link_field::render in views/entityform_handler_link_field.inc
Render the field.

File

views/entityform_handler_link_field.inc, line 63
Contains a Views field handler to take care of displaying links to entities as fields.

Class

entityform_handler_link_field
@file Contains a Views field handler to take care of displaying links to entities as fields.

Code

function render_link($entity, $op, $uri, $text) {
  if (entity_access($op, $this->entity_type, $entity)) {
    $this->options['alter']['make_link'] = TRUE;
    $this->options['alter']['path'] = $uri['path'];
    $this->options['alter']['options'] = $uri['options'];
    $text = !empty($this->options['text']) ? $this->options['text'] : $text;
    return $text;
  }
}