You are here

views_handler_field_comment_link_reply.inc in Views (for Drupal 7) 6.2

File

modules/comment/views_handler_field_comment_link_reply.inc
View source
<?php

/**
 * Field handler to present a link to delete a node.
 */
class views_handler_field_comment_link_reply extends views_handler_field_comment_link {
  function render($values) {

    //check for permission to reply to comments
    if (!user_access('post comments')) {
      return;
    }
    $text = !empty($this->options['text']) ? $this->options['text'] : t('reply');
    return l($text, "comment/reply/" . $values->{$this->aliases['nid']} . '/' . $values->{$this->aliases['cid']});
  }

}

Classes

Namesort descending Description
views_handler_field_comment_link_reply Field handler to present a link to delete a node.