function views_handler_field_comment_depth::render
3.x views_handler_field_comment_depth.inc | views_handler_field_comment_depth::render($values) |
2.x views_handler_field_comment_depth.inc | views_handler_field_comment_depth::render($values) |
Work out the depth of this comment
Overrides views_handler_field::render
File
- modules/
comment/ views_handler_field_comment_depth.inc, line 17 - Definition of views_handler_field_comment_depth.
Class
- views_handler_field_comment_depth
- Field handler to display the depth of a comment.
Code
function render($values) {
$comment_thread = $this->get_value($values);
return count(explode('.', $comment_thread)) - 1;
}