You are here

function editablefields_handler_field_node::render_link in Editable Fields 6.3

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

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

File

includes/views/editablefields_handler_field_node.inc, line 26
Contains the basic 'node' field handler.

Class

editablefields_handler_field_node
Field handler to provide simple renderer that allows linking to a node.

Code

function render_link($data, $values) {
  if (!empty($this->options['link_to_node'])) {
    $data = parent::render_link();
  }
  elseif (!empty($this->options['editable_allowed'])) {
    $data = 'editable link';
  }
  return $data;
}