function node_expire_rules_expired_check_lastnotify in Node expire 7
Same name and namespace in other branches
- 8 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify()
- 6.2 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify()
- 7.2 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify()
Checks lastnotify.
Checks if the node has the the "Expired" flag on and lastnotify greater than or equal to 2 weeks.
Parameters
object $node: The Node object.
File
- ./
node_expire.rules.inc, line 110 - Rules module integration.
Code
function node_expire_rules_expired_check_lastnotify($node) {
return !empty($node->expire) && $node->expire <= REQUEST_TIME && $node->expired == 1 && $node->lastnotify <= REQUEST_TIME - 14 * 24 * 60 * 60;
}