function views_handler_field_comment_depth::render
Same name in other branches
- 7.x-3.x modules/comment/views_handler_field_comment_depth.inc \views_handler_field_comment_depth::render()
Work out the depth of this comment
Overrides views_handler_field::render
File
-
modules/
comment/ views_handler_field_comment_depth.inc, line 11
Class
- views_handler_field_comment_depth
- Field handler to display the depth of a comment.
Code
function render($values) {
return count(explode('.', $values->comments_thread)) - 1;
}