function node_expire_rules_expired_check_lastnotify_is_set in Node expire 8
Same name and namespace in other branches
- 7.2 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify_is_set()
- 7 node_expire.rules.inc \node_expire_rules_expired_check_lastnotify_is_set()
Checks lastnotify is set.
Checks if the node has the the "Expired" flag on and lastnotify is set.
Parameters
object $node: The Node object.
File
- ./
node_expire.rules.inc, line 123 - Rules module integration.
Code
function node_expire_rules_expired_check_lastnotify_is_set($node) {
return !empty($node->expire) && $node->expire <= time() && $node->expired == 1 && $node->lastnotify != 0;
}