function views_handler_comment_add in Views (for Drupal 7) 5
display a link to add a comment to a node
1 string reference to 'views_handler_comment_add'
- comment_views_tables in modules/
views_comment.inc - This include file implements views functionality on behalf of comment.module
File
- modules/
views_comment.inc, line 361
Code
function views_handler_comment_add($fieldinfo, $fielddata, $value, $data) {
if (user_access('post comments')) {
$link_text = $fielddata['options'] ? $fielddata['options'] : t('Comment');
return l($link_text, 'comment/reply/' . $data->nid, NULL, NULL, 'comment-form');
}
}