Same name and namespace in other branches
  1. 4.6.x modules/node.module \NODE_NEW_LIMIT
  2. 4.7.x modules/node.module \NODE_NEW_LIMIT
  3. 5.x modules/node/node.module \NODE_NEW_LIMIT
  4. 7.x modules/node/node.module \NODE_NEW_LIMIT

Nodes changed before this time are always marked as read.

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

5 uses of NODE_NEW_LIMIT
comment_num_new in modules/comment/comment.module
Get number of new comments for current user and specified node.
node_cron in modules/node/node.module
Implementation of hook_cron().
_forum_new in modules/forum/forum.module
Finds the first unread node for a given forum.
_forum_topics_unread in modules/forum/forum.module
Calculate the number of nodes the user has not yet read and are newer than NODE_NEW_LIMIT.
_forum_user_last_visit in modules/forum/forum.module

File

modules/node/node.module, line 15
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60);