COMMENT_NEW_LIMIT

Same name in other branches
  1. 8.9.x 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/2006632 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 40

Code

define('COMMENT_NEW_LIMIT', (int) $_SERVER['REQUEST_TIME'] - 30 * 24 * 60 * 60);

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