Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. 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

File

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

Code

define('COMMENT_NEW_LIMIT', (int) $_SERVER['REQUEST_TIME'] - 30 * 24 * 60 * 60);
RSS feed
Powered by Drupal