You are here

function pollim_handler_link_field::render in Poll Improved 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

2 methods override pollim_handler_link_field::render()
pollim_handler_delete_link_field::render in views/pollim_handler_delete_link_field.inc
Render the field.
pollim_handler_edit_link_field::render in views/pollim_handler_edit_link_field.inc
Render the field.

File

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

Class

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

Code

function render($values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
  $pollim_id = $values->{$this->aliases['pollim_id']};
  return l($text, 'pollim/' . $pollim_id);
}