additional_fields['type'] = array('table' => 'node', 'field' => 'type'); } 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'); $comment_type = variable_get('comment_type_'. $values->{$this->aliases['type']}, variable_get('default_comment_type', '')); return l($text, 'node/add/'. $comment_type .'/' . $values->{$this->aliases['nid']} . '/' . $values->{$this->aliases['cid']}); } }