You are here

function entityform_handler_edit_link_field::render in Entityform 7

Same name and namespace in other branches
  1. 7.2 views/entityform_handler_edit_link_field.inc \entityform_handler_edit_link_field::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides entityform_handler_link_field::render

File

views/entityform_handler_edit_link_field.inc, line 17
Contains a Views field handler to take care of displaying edit links as fields

Class

entityform_handler_edit_link_field
@file Contains a Views field handler to take care of displaying edit links as fields

Code

function render($values) {
  if (!entityform_access('edit', $this
    ->create_dummyentityform($values))) {
    return;
  }
  $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
  $entityform_id = $values->{$this->aliases['entityform_id']};
  return l($text, 'entityform/' . $entityform_id . '/edit');
}