views_handler_field_comment_depth.inc
- 3.x modules/comment/views_handler_field_comment_depth.inc
- 2.x modules/comment/views_handler_field_comment_depth.inc
File
modules/comment/views_handler_field_comment_depth.incView source
- <?php
- /**
- * Field handler to display the depth of a comment
- */
- class views_handler_field_comment_depth extends views_handler_field {
- /**
- * Work out the depth of this comment
- */
- function render($values) {
- return count(explode('.', $values->comments_thread)) - 1;
- }
- }
-