function views_handler_field_comment_depth::render
Same name in other branches
- 6.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 18
Class
- views_handler_field_comment_depth
- Field handler to display the depth of a comment.
Code
public function render($values) {
$comment_thread = $this->get_value($values);
return count(explode('.', $comment_thread)) - 1;
}