COMMENT_NEW_LIMIT

Same name in other branches
  1. 9 core/modules/comment/comment.module \COMMENT_NEW_LIMIT
  2. 10 core/modules/comment/comment.module \COMMENT_NEW_LIMIT
  3. 11.x core/modules/comment/comment.module \COMMENT_NEW_LIMIT

The time cutoff for comments marked as read for entity types other node.

Comments changed before this time are always marked as read. Comments changed after this time may be marked new, updated, or read, depending on their state for the current user. Defaults to 30 days ago.

@todo Remove when https://www.drupal.org/node/1029708 lands.

1 use of COMMENT_NEW_LIMIT
CommentManager::getCountNewComments in core/modules/comment/src/CommentManager.php
Returns the number of new comments available on a given entity for a user.

File

core/modules/comment/comment.module, line 70

Code

define('COMMENT_NEW_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.