You are here

function quote_handler_field_comment_link_quote::render_link in Quote 7

Overrides views_handler_field_comment_link::render_link

File

views/quote_handler_field_comment_link_quote.inc, line 17
Provides a 'quote' link for Views.

Class

quote_handler_field_comment_link_quote
Field handler to present a link to delete a node.

Code

function render_link($data, $values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('quote');
  $nid = $this
    ->get_value($values, 'nid');
  $cid = $this
    ->get_value($values, 'cid');
  $this->options['alter']['make_link'] = TRUE;
  $this->options['alter']['path'] = "comment/reply/" . $nid . '/' . $cid . '?quote=1#comment-form';
  return $text;
}