You are here

function node_expire_rules_expired_check_lastnotify in Node expire 6.2

Same name and namespace in other branches
  1. 8 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify()
  2. 7.2 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify()
  3. 7 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify()

Check if the node has the the "Expired" flag on and lastnotify greater than or equal to 2 weeks.

Parameters

$node: Object. The Node object.

File

./node_expire.rules.inc, line 86
Rules module integration.

Code

function node_expire_rules_expired_check_lastnotify($node) {
  return !empty($node->expire) && $node->expire <= time() && $node->expired == 1 && $node->lastnotify <= time() - 14 * 24 * 60 * 60;
}