Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/comment/views_handler_field_comment_depth.inc | ||
---|---|---|
11 | 11 |
* @ingroup views_field_handlers |
12 | 12 |
*/ |
13 | 13 |
class views_handler_field_comment_depth extends views_handler_field { |
14 |
|
|
14 | 15 |
/** |
15 |
* Work out the depth of this comment |
|
16 |
* Work out the depth of this comment.
|
|
16 | 17 |
*/ |
17 |
function render($values) { |
|
18 |
public function render($values) {
|
|
18 | 19 |
$comment_thread = $this->get_value($values); |
19 | 20 |
return count(explode('.', $comment_thread)) - 1; |
20 | 21 |
} |
22 |
|
|
21 | 23 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules