function views_handler_field_gathercontent_operation_item_gathercontent_link::render_link in GatherContent 7.3
Renders the link.
Overrides views_handler_field_node_link::render_link
File
- views/
handlers/ views_handler_field_gathercontent_operation_item_gathercontent_link.inc, line 18 - Definition of views_handler_field_node_link_edit.
Class
- views_handler_field_gathercontent_operation_item_gathercontent_link
- Field handler to present a link node edit.
Code
function render_link($entity, $values) {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = 'http://' . variable_get('gathercontent_urlkey') . '.gathercontent.com/item/' . $entity->gathercontent_id;
$text = !empty($this->options['text']) ? $this->options['text'] : t('Open');
return $text;
}