public function views_handler_field_comment_depth::render in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/comment/views_handler_field_comment_depth.inc \views_handler_field_comment_depth::render()
- 6.2 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 - Definition of views_handler_field_comment_depth.
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;
}