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