You are here

function entityform_type_handler_submit_link_field::render in Entityform 7.2

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

views/entityform_type_handler_submit_link_field.inc, line 40
Contains a Views field handler to take care of displaying submit links as fields

Class

entityform_type_handler_submit_link_field
@file Contains a Views field handler to take care of displaying submit links as fields

Code

function render($values) {
  $type = $values->{$this->aliases['type']};
  if (!entityform_access('submit', $type)) {
    return;
  }
  $text = !empty($this->options['text']) ? $this->options['text'] : t('submit');
  return l($text, 'eform/submit/' . str_replace('_', '-', $type));
}